.jar files and Class-Path
From: Tuomo Nygård (tnygard_at_mail.suomi.net)
Date: 03/28/04
- Next message: Joe: "Re: Input Validation???"
- Previous message: Bjorn Abelli: "Re: Java Float newbie problem"
- Next in thread: Goran: "Re: .jar files and Class-Path"
- Reply: Goran: "Re: .jar files and Class-Path"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sun, 28 Mar 2004 18:39:32 +0300
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?
- Next message: Joe: "Re: Input Validation???"
- Previous message: Bjorn Abelli: "Re: Java Float newbie problem"
- Next in thread: Goran: "Re: .jar files and Class-Path"
- Reply: Goran: "Re: .jar files and Class-Path"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|