Problem with CLASSPATH

Using the Java SDK with TextPad

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

Post Reply
lmoreira
Posts: 2
Joined: Fri Mar 09, 2007 10:29 am
Location: Oxford, UK

Problem with CLASSPATH

Post 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
lmoreira
Posts: 2
Joined: Fri Mar 09, 2007 10:29 am
Location: Oxford, UK

Problem with CLASSPATH

Post 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
User avatar
Nicholas Jordan
Posts: 124
Joined: Mon Dec 20, 2004 12:33 am
Location: Central Texas ISO Latin-1
Contact:

Post 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.
Post Reply