Mike Gershman
SCJP 1.4, SCWCD in process
Piscis Babelis est parvus, flavus, et hiridicus, et est probabiliter insolitissima raritas in toto mundo.
I save all my .java files and compile them from c:\dev
Mike Gershman
SCJP 1.4, SCWCD in process
Originally posted by Tom Griffith:
Hi. Maybe I've never fully grapsped what CLASSPATH is...
1. In the autoexec, I've entered the directory where javac.exe is. In my case, c:\JAVA5
2. I save all my .java files and compile them from c:\dev
3. On the command line, I navigate to c:\dev and type...
javac classA.java
then I try to compile classB, with the object reference to classA as stated above...
javac classB.java
it gives the error. So, as an experiment, I created a jar, classA.jar, containing classA.class, and tried this from the command line...
javac classB.java -classpath .;classA.jar classB.java
Still, the same error. It's looking like I need to set CLASSPATH somewhere??
Thank you...
[ November 04, 2004: Message edited by: Tom Griffith ]