I am trying to load a MySQL driver from another .jar file with the
following line:
Class.forName("org.gjt.mm.mysql.Driver");
This causes a ClassNotFoundException, even if I include the file
containing this class (mm_mysql-2_0_3-src.jar) in the program by
inserting the following line into my program's jar file's manifest:
Class-Path: ./mm_mysql-2_0_3-src.jar
or simply
Class-Path: .
Am I doing something wrong? I'm using Xcode 1.1, and the jar file I need
to use is located in the same directory as my program's jar file. Do I
need to include the jar file to be used in the project somehow?
Goran - 30 Mar 2004 11:07 GMT
Tuomo Nygård wrote:
> I am trying to load a MySQL driver from another .jar file with the
> following line:
[quoted text clipped - 10 lines]
> to use is located in the same directory as my program's jar file. Do I
> need to include the jar file to be used in the project somehow?
The best way is to use your Java Runtime Environment.
Put this jar file (which is mysql.Driver) in to ..path to your java
jre../lib/ext folder
Send me a massage if this works.

Signature
To reply please remove NOSPAM