• Post Reply Bookmark Topic Watch Topic
  • New Topic

please please need configuration  RSS feed

 
Hussein Baghdadi
clojure forum advocate
Bartender
Posts: 3479
Clojure Mac Objective C
  • 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:
------------------------------------
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...
 
Michael Morris
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:\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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!