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!
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!