Win a copy of Svelte and Sapper in Action this week in the JavaScript forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

classpath woes

 
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • 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
  • 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.
 
Did you ever grow anything in the garden of your mind? - Fred Rogers. Tiny ad:
the value of filler advertising in 2020
https://coderanch.com/t/730886/filler-advertising
    Bookmark Topic Watch Topic
  • New Topic