Win a copy of Five Lines of Code this week in the OO, Patterns, UML and Refactoring 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 ...
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
  • Piet Souris
  • Frits Walraven
  • Carey Brown

please please need configuration

clojure forum advocate
Posts: 3479
Mac Objective C Clojure
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi everyone.
we know that if we have jar files and we want to access these files in our application, we must put then under ext dir.
fine, I am using winxp, and I have the following dirs:
Program Files\Java\jre1.4.0\lib\ext\
I am always but the extra jar files under "JAVA_HOME\jre\lib\ext\"
but when putting the mysql jdbc driver under this dir, the application doesn't work until I put this jar under "Program Files\Java\jre1.4.0\lib\ext\"
so what is wrong ??
should I add some thing to my classpath??
SDKSE is the dir which I have installed the SDK 1.4.0
and I have set the JAVA_HOME variable at D:\SDKSE
when looking at system properties inside my machine I found :
what is the mission of "Program Files\Java" ??
So , please help me because I am in trouble here...
Ranch Hand
Posts: 3451
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I use the mysql JDBC library and never set the CLASSPATH. What may be happening to you is that you are compiling using the SDK and then trying to run in an applet (on the native browser) or thru Webstart. If that's the case then the library must be placed in the extension directory of both the SDK and the Java Plugin.
For example on my box what would be required is to place the mysql JDBC jar in these two directories:
C:\Program Files\Java\j2re1.4.2_03\lib\ext
If you are using an applet or Webstart, you may be better off jarring up your code and setting the CLASSPATH in the manifest of that jar that will include the mysql jar.
This is awkward. I've grown a second evil head. I'm going to need a machete and a tiny ad ...
Thread Boost feature
    Bookmark Topic Watch Topic
  • New Topic