• 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
  • Ron McLeod
  • Paul Clapham
  • Rob Spoor
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Junilu Lacar
  • Tim Cooke
Saloon Keepers:
  • Tim Holloway
  • Piet Souris
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Frits Walraven
  • Himai Minh

classpath woes

 
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hey all - I'm working off completely new systems that I just installed j2sdk1.4.0 on. Anyhow, I'm wondering where Java gets its reference to the core .jar files in the lib folder.
Everything else has to have the classpath reference it, but these do not. How does java do this?
On a completely other note, has anyone else had problems with JBuilder Personal recognizing certain classes? Today I was trying to import java.lang.reflect.* and it balked. I have the raw jdk installed though so I could work around it.
It's a wonder to me that people don't complain more often about the classpath traumas that seem to pop up all the time. Let me give you an example: say I have Tomcat installed but I'd like to use a jdbc driver that doesn't come with it (http://www.inetsoftware.de) AND I'd like to use an IDE rather than slugging out everything in textpad - is there an elegant solution for this or does everyone just hack away the way I do?
Okay, I guess that's my question(s), TIA.
Tetsuo!
 
Ranch Hand
Posts: 3695
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I think the classpath issues are best addressed by NOT using system classpath settings. In the past, it's caused a lot of grief.

When I once installed visual cafe, my classpath ballooned like crazy. (Oracle 8i is another nasty one).

Even Tomcat 3.x used to use system classpath settings.

But now, I've noticed more and more, IDEs (JBuilder, for example, has always done it this way) and Tomcat 4.x now construct their own classpath which they feed to either javac or java programs with -classpath or -cp command-line switches (thank you Sun for making something so important, the same for both).

And you are right.. it's absolutely the single most frustrating thing for Java beginners (and some of us more seasoned folks) to run across.
 
Wait for it ... wait .... wait .... NOW! Pafiffle! A perfect tiny ad!
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic