Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Classpath for OOP-1 DaysOld

 
Lance Finney
Ranch Hand
Posts: 133
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1012
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Sheriff
Posts: 9065
12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Johannes de Jong
tumbleweed
Bartender
Posts: 5089
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 133
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks. As Greg said, "You would think..."
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic