|
Originally posted by Marc Leger:
Thinking i may run into probs with sdk 1.5, i uninstalled it and installed 1.4.2_09
C:\Documents and Settings\Robert Townsend>javac -version
'javac' is not recognized as an internal or external command,
operable program or batch file.
I don't know if i am setting my classpath correctly. I've tried a few different things, but here is what i have as the CLASSPATH for the "User Variables" and "System Variables"
"C:\j2sdk1.4.2_08\bin;C:\j2sdk1.4.2_09\myclasses"
I did notice that the RunTime Environment is Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_09-b05) <-- notice the b05. I thought i read somewhere that it stood for beta and shouldn't be used, although i haven't been able to confirm that since.
JavaBeginnersFaq
"Yesterday is history, tomorrow is a mystery, and today is a gift; that's why they call it the present." Eleanor Roosevelt
Originally posted by Marc Leger:
What exactly has to be be added to the User and System Variables to get this to work? Please remember that i don't have any files yet. If you need me to create a folder to put my .java files and my .class files, let me know and i will create such a folder.
PS
Right now, i have the following settings in the Environment variables:
User Variables: ClASSPATH
C:\j2sdk1.4.2_09\myclasses
System Variables: path
JavaBeginnersFaq
"Yesterday is history, tomorrow is a mystery, and today is a gift; that's why they call it the present." Eleanor Roosevelt
Originally posted by Marc Leger:
What exactly has to be be added to the User and System Variables to get this to work? Please remember that i don't have any files yet. If you need me to create a folder to put my .java files and my .class files, let me know and i will create such a folder.
PS
Right now, i have the following settings in the Environment variables:
User Variables: ClASSPATH
C:\j2sdk1.4.2_09\myclasses
System Variables: path C:\j2sdk1.4.2_09\bin;C:\oracle\product\10.2.0\db_1\bin;...
JavaBeginnersFaq
"Yesterday is history, tomorrow is a mystery, and today is a gift; that's why they call it the present." Eleanor Roosevelt
Originally posted by Marc Leger:
[QB]
Right now, i have the following settings in the Environment variables:
User Variables: ClASSPATH
C:\j2sdk1.4.2_09\myclasses
QB]
Eric LEMAITRE
CNAM IT Engineer, MS/CS (RHCE, RHCX, SCJA, SCJP, SCJD, SCWCD, SCBCD, SCEA, Net+)
Free Online Tutorials: http://www.free-tutorials-online.net/
You must have normally as "System" (I mean not "User") environment variables :
_ JAVA_HOME : complete path to you Java installation directory
_ CLASSPATH : .;JAVA_HOME\lib\tools.jar
_ PATH : ...PATH...;JAVA_HOME\bin
Comments :
_ JAVA_HOME is often used by many programs fully Java written (such as Ant & Tomcat) so as to get a useable local Java instance.
_ CLASSPATH means "path to directories or files you must use for your Java program". "." is current directory where you usually go to launch your Java programs, and "tools.jar" is the Java lib which contains all needed things to run any Java program.
_ You must add "JAVA_HOME\bin" path to the already existing paths for executable programs for Java executables are there.
_ ";" is a Windows system separator to isolate items inside an environment variable, while in Unix/Linux it is ":" which is used instead.
JavaBeginnersFaq
"Yesterday is history, tomorrow is a mystery, and today is a gift; that's why they call it the present." Eleanor Roosevelt
I yam what I yam and that's all that I yam - the great philosopher Popeye. Tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
|