This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
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


JavaRanch » Java Forums » This Site » Cattle Drive
Bookmark "Classpath for OOP-1 DaysOld" Watch "Classpath for OOP-1 DaysOld" New topic
Author

Classpath for OOP-1 DaysOld

Lance Finney
Ranch Hand

Joined: Apr 26, 2001
Posts: 133
I've modified my classpath so javac sees JavaRanchCommon.zip, 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.
Thanks
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.


what?
Marilyn de Queiroz
Sheriff

Joined: Jul 22, 2000
Posts: 9046
    
  10
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.

JavaBeginnersFaq
"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
tumbleweed
Bartender

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..."
 
GeeCON Prague 2014
 
subject: Classpath for OOP-1 DaysOld