I can't compile a simple "hello world" program from the command line or from text pad. The response is that
"Can not resolve symbol, symbol: class string..... package system does not exist". I have read teh FAQ about installing and looked on the java.sun site but can not see what I am doing wrong.
I have installed correctly on my desktop, but can not get this correct on my notebook.
Try adding these lines to your autoexec.bat file.You should remove previously added path and class path variables for java.
Give the filename as it is installed in your system, in path and classpath(here that is j2sdk1.4.1_01)(For this , right click on Start ,explore and check how the installation directory is spelt)
set classpath=%classpath%;c:\j2sdk1.4.1_01\lib;
set path=%path%;c:\j2sdk1.4.1_01\bin
And run autoexec from command prompt (Type autoexec and press enter) or restart your system.
To check if java is correctly installed in your system run the commands java and javac from command prompt.
Here is my autoexec.bat file... I am still getting the same error. Grrr... I really don't understand what the problem is.
@ECHO OFF
REM [Header]
REM [CD-ROM Drive]
REM C:\WINDOWS\COMMAND\MSCDEX /D:MSCD001
REM [Miscellaneous]
REM [Display]
REM SET PATH=C:\WINDOWS\SYSTEM\WBEM;C:\DMI\WIN32\BIN;C:\STLTE182\Keyboard;C:\STLTE182;
set classpath=%classpath%;c:\j2sdk\lib;
set path=%path%;c:\j2sdk\bin
SET WIN32DMIPATH=C:\DMI\WIN32
CLS
PROMPT=$P$G
rem PATH=C:\WINDOWS\COMMAND;C:\WINDOWS;;C:\STLTE182\Keyboard;
SET STATION=14
rem SET CCTERMINAL=
rem SET FORMCACHE=C:\FORMS
SET FORMCACHE=C:\CACHE
SET AUTO_SWAP=NO
SET SINGLE_CACHE=NO
SET MAX_CHAINS=5
rem cd \stlte182
rem lh sl starkeyb
rem lh te llllyyygrwwbw,c,;\;,2,6,,,,,s,,,*tel
rem cd\FORMS
rem PATH=%PATH%;"C:\Program Files\Mts"
rem path=c:\borland\bcc55\bin;%path%;
rem SET path="C:\Program Files\Oracle\jre\1.1.8\bin";"%path%";
rem SET Path=c:\oracle\ora90\bin;"%Path%"
set ci_holos_cli=c:\program files\seagate software\open olap
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.