Or in Windows, you can also do
set path=C
<path to java>\bin;%path%
Then javac <yourfile>.java will work. For the most basic of problems, classpath isn't really needed. Note: this setting of the path will end once the command shell you're working in is closed. This works in both Win9x and Win2K.
To add it permanently:
In Windows 2000, right click on My Computer -> Properties -> System -> under environment variables, add "C
<path to java>\bin"
Under Win9x, add it into autoexec.bat before the trailing %path%
At least, that's how I recall doing it.
set path=C
<path to java>\bin;%path%Then javac <yourfile>.java will work. For the most basic of problems, classpath isn't really needed. Note: this setting of the path will end once the command shell you're working in is closed. This works in both Win9x and Win2K.
To add it permanently:
In Windows 2000, right click on My Computer -> Properties -> System -> under environment variables, add "C
<path to java>\bin"Under Win9x, add it into autoexec.bat before the trailing %path%
At least, that's how I recall doing it.