K
Kordian
Hi,
I have problem with jar archive and Class-Path from Manifest.fm. I
have put all API class with one main-class into JAR archive.
Additionaly I use JDBC drivers for MSSQL which are located in
c:\mssql\lib path. So, my manifest file looks like this:
Manifest-Version: 1.0
Created-By: 1.4.0 (Sun Microsystems Inc.)
Main-Class: check4
Class-Path: c:\mssql\lib\mssqlserver.jar c:\mssql\lib\msbase.jar
c:\mssql\lib\msutil.jar
And when I run my JAR file I receive an error:
Exception in thread "main" java.lang.NoClassDefFoundError: check4
Java can not find my main class
After removing line with Class-Path
i get an error:
Driver not found: java.lang.ClassNotFoundException:
com.microsoft.jdbc.sqlserver.SQLServerDriver
com.microsoft.jdbc.sqlserver.SQLServerDriver
Exception: java.sql.SQLException: No suitable driver
No suitable driver
Driver not found: java.lang.ClassNotFoundException:
com.microsoft.jdbc.sqlserver.SQLServerDriver
com.microsoft.jdbc.sqlserver.SQLServerDriver
Exception: java.sql.SQLException: No suitable driver
No suitable driver
What am I to do? What I do wrong?
Kordian
I have problem with jar archive and Class-Path from Manifest.fm. I
have put all API class with one main-class into JAR archive.
Additionaly I use JDBC drivers for MSSQL which are located in
c:\mssql\lib path. So, my manifest file looks like this:
Manifest-Version: 1.0
Created-By: 1.4.0 (Sun Microsystems Inc.)
Main-Class: check4
Class-Path: c:\mssql\lib\mssqlserver.jar c:\mssql\lib\msbase.jar
c:\mssql\lib\msutil.jar
And when I run my JAR file I receive an error:
Exception in thread "main" java.lang.NoClassDefFoundError: check4
Java can not find my main class
i get an error:
Driver not found: java.lang.ClassNotFoundException:
com.microsoft.jdbc.sqlserver.SQLServerDriver
com.microsoft.jdbc.sqlserver.SQLServerDriver
Exception: java.sql.SQLException: No suitable driver
No suitable driver
Driver not found: java.lang.ClassNotFoundException:
com.microsoft.jdbc.sqlserver.SQLServerDriver
com.microsoft.jdbc.sqlserver.SQLServerDriver
Exception: java.sql.SQLException: No suitable driver
No suitable driver
What am I to do? What I do wrong?
Kordian