• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Classpath for OOP-1 DaysOld

 
Ranch Hand
Posts: 133
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 1012
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Sheriff
Posts: 9109
12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
tumbleweed
Posts: 5089
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks. As Greg said, "You would think..."
reply
    Bookmark Topic Watch Topic
  • New Topic