Problem with CLASSPATH
Posted: Fri Jan 25, 2008 6:28 pm
Hi All,
I have setup the CLASSPATH variable as direct and everything works fine. However I am finding a problem using other packages (.jar).
I have this package called element.jar, with full path D:\UNI\109\element.jar . To use it I added to the CLASSPATH variable that path:
CLASSPATH = C:\Program Files\Java\jre1.5.0_06\lib\ext\QTJava.zip;D:\UNI\109\element.jar;
and on my class, One.java, I added "import element.*;"
If I compile using the command line javac One.java on the DOS window the compilation works no problem and then it will run, But if I try to compile using the tools in TextPad it will not compile and tells me it can not find package element.
What I'm I doing wrong?
Best regards
Luis
I have setup the CLASSPATH variable as direct and everything works fine. However I am finding a problem using other packages (.jar).
I have this package called element.jar, with full path D:\UNI\109\element.jar . To use it I added to the CLASSPATH variable that path:
CLASSPATH = C:\Program Files\Java\jre1.5.0_06\lib\ext\QTJava.zip;D:\UNI\109\element.jar;
and on my class, One.java, I added "import element.*;"
If I compile using the command line javac One.java on the DOS window the compilation works no problem and then it will run, But if I try to compile using the tools in TextPad it will not compile and tells me it can not find package element.
What I'm I doing wrong?
Best regards
Luis