File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Cattle Drive and the fly likes Classpath for OOP-1 DaysOld Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » This Site » Cattle Drive
Bookmark "Classpath for OOP-1 DaysOld" Watch "Classpath for OOP-1 DaysOld" New topic

Classpath for OOP-1 DaysOld

Lance Finney
Ranch Hand

Joined: Apr 26, 2001
Posts: 133
I've modified my classpath so javac sees, and I can compile fine. However, when I try to compile within an IDE (I've tried Visual Cafe and BlueJ), the compilation fails. Is the classpath approach applicable only to using javac? I found ways within the IDEs to add the zip file to the directory structure, and it works. However, I expected that a change that works for javac would work for all compilers.
Greg Harris
Ranch Hand

Joined: Apr 12, 2001
Posts: 1012
no, changing your classpath only works for javac (or the jdk). you have to tell your IDE where to look for the files in the "settings" (or similar) menu. you would think that the IDE would know to look for your classpath, but i guess that there are too many different platforms to worry about, so you have to set it up yourself.

Marilyn de Queiroz

Joined: Jul 22, 2000
Posts: 9059
To reiterate, you need to tell the IDE what is in your classpath. It does not read it from the system classpath like javac does.

"Yesterday is history, tomorrow is a mystery, and today is a gift; that's why they call it the present." Eleanor Roosevelt
Johannes de Jong

Joined: Jan 27, 2001
Posts: 5089
Textpad does
Textpad is not an IDE
The queen thinks it is
[This message has been edited by Johannes de Jong (edited August 09, 2001).]
Lance Finney
Ranch Hand

Joined: Apr 26, 2001
Posts: 133
Thanks. As Greg said, "You would think..."
I agree. Here's the link:
subject: Classpath for OOP-1 DaysOld
jQuery in Action, 3rd edition