Page 1 of 1

Problem with CLASSPATH

Posted: Fri Jan 25, 2008 6:28 pm
by lmoreira
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

Problem with CLASSPATH

Posted: Sat Jan 26, 2008 11:43 am
by lmoreira
Hi All,
I have now tried the same thing on another PC and it worked.

I can not see any diferences at all...

Best regards
Luis

Posted: Mon Feb 04, 2008 5:53 pm
by Nicholas Jordan
Where did you set the classpath ? ( what tool or shell - dos boxes have transient environment pointers)

Also:CLASSPATH = "C:\Program Files\Java\jre1.5.0_06\lib\ext\QTJava.zip";D:\UNI\109\element.jar; ... add the quotes.