• 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

please please need configuration

 
clojure forum advocate
Posts: 3479
Mac Objective C Clojure
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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:
------------------------------------
JAVA_HOME\jre\lib\ext\
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??
---------------------
my CLASSPATH is:
.;D:\SDKSE\lib\tools.jar;D:\SDKSE
--------------------
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 :
sun.boot.library.path=D:\SDKSE\jre\bin
java.home=D:\SDKSE\jre
java.ext.dirs=D:\SDKSE\jre\lib\ext
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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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:\j2sdk1.4.2_03\jre\lib\ext
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.
 
We don't have time for this. We've gotta save the moon! Or check this out:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic