Discussion Locked

What need to do to compile Java file

0 helpful
5 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
After installation JDK1.3 on a computer with Windows 2000 what do I need to do for compilation a file? What file, like AUTOEXEC.BAT in WIN98, I need to modify?

5 replies

by okujava

win2000 doesn't use autoexec.bat. so you should set the path and classpath variables as follows:
right click on My Computer -> Properties -> Extras -> Environment variables.
Hier you can set a variable with the name "path" and the value for example "c:\jdk1.3\bin". Click ok and open the dos box, type "javac -version" (without quotes) and see if it works. if not, check the value of path.

cheers

by timthetoolman

Hi,

Yes and just to add to the above answer, you should make the CLASSPATH environment variable a "system" one (and changes to the path too) so that it doesn't matter which username logs into the machine - its available system wide.

Its possible you'll want to run stuff under the administrator account sometimes, and your account at other times. This way, you will be able to...

Cheers,
Tim.

This discussion is closed to new replies.