G
Guest
I have the JDK 1.4.2_13 installed on Linux, and have my CLASSPATH
environment variable set correctly (it looks correct when I do the
"set" command).
When I try to compile a java class using the command:
javac myClass.java
it tells me that a certain package does not exist, even though that
package does exist in the CLASSPATH.
But when I compile the java class using the command:
javac -classpath [the same thing in my CLASSPATH env var] myClass.java
then it works fine.
Why is javac ignoring my CLASSPATH environment variable?
environment variable set correctly (it looks correct when I do the
"set" command).
When I try to compile a java class using the command:
javac myClass.java
it tells me that a certain package does not exist, even though that
package does exist in the CLASSPATH.
But when I compile the java class using the command:
javac -classpath [the same thing in my CLASSPATH env var] myClass.java
then it works fine.
Why is javac ignoring my CLASSPATH environment variable?