|
|||
|
Hmmm, not sure if Vista is different, i have opened the env vars, and there was no JAVA_HOME, so i've added a new one, called JAVA_HOME, and given it the classpath of C:\Program Files\Java\jdk1.6.0_07
but when i open cmd still gotta use cd to use javac, not sure whether that was the purpose of changing the env vars though lol :-( |
|
|||
|
There are two things: first is specifying where your system would find javac.exe to execute; second is where your java compiler (or javac.exe) would find classes it needs to compile. Former would be specified in your systems PATH variable and latter would be specified by your CLASSPATH variable.
To be able to execute javac.exe from anywhere, you must add following information to your system's PATH variable; i.e. you path variable would look like PATH=<path_to_java_installation_folder>/bin;<%other_PATH_variable values%> For more information on classpath, refer to following link: Welcome to J2EE Concepts - Java HTH, Anand Last edited by anandmohans; 12-11-2008 at 07:13 AM. Reason: Putting a more readable URL |
![]() |
| Thread Tools | |
| Display Modes | |
|
|