sneakyimp
03-01-2006, 11:49 AM
ok...i've been doing the java writing tutorials on sun.com and most of them suggest you can compile a java project simply by typing:
C:\divelog>javac -classpath C:\ DiveLog.java
I find that I have to type in the ENTIRE path to javac.exe like this:
"C:\Program Files\Java\jdk1.5.0_06\bin\javac.exe" -classpath C:\ DiveLog.java
Is there something I can do to register the exe so I don't have to do that?
Also, what the heck does 'classpath' do?
C:\divelog>javac -classpath C:\ DiveLog.java
I find that I have to type in the ENTIRE path to javac.exe like this:
"C:\Program Files\Java\jdk1.5.0_06\bin\javac.exe" -classpath C:\ DiveLog.java
Is there something I can do to register the exe so I don't have to do that?
Also, what the heck does 'classpath' do?