Re: Problem with Connector/J and Main-Class manifest -
02-24-2005
, 02:18 PM
Hi Sergy,
The jar file in the mysql-connector-java-3.1.7 directory is not an
executable jar file. Instead this is the production jar file that you should
include in your classpath in order to use the mysql jdbc file.
So don't try to run the file, instead add that file to the classpath of your
application and then do the normal jdbc things as you would normally. If you
look in the /docs/ directory that you would have installed then details of
installation are mentioned there.
Good luck,
John Neale
----- Original Message -----
From: <d3957695 (AT) est (DOT) fib.upc.edu>
To: <java (AT) lists (DOT) mysql.com>
Sent: Thursday, February 24, 2005 5:01 PM
Subject: Problem with Connector/J and Main-Class manifest
Hi:
I've downloaed from your website the Connector/J 3.1 (I want to use java
code to
connect to MYSQL databases) but I have a big problem I hope you can solve
it....
When I unzip the file, I have 2 folders: META-INF and
mysql-connector-java-3.1.7. Inside this last folder, I try to execute de jar
file, but when I do it the following error message is shown:
"Failed to load Main-Class manifest attribute from C:\Documents and
Settings\iadmin\Escritorio\........ (the complete path of the .jar file).
Could you please tell me how to solve this problem? I need to use this
application as soon as possible to finish a work...
Thanks for your answer.
Have a nice day!!!!!
Sergi Pujols
--
MySQL Java Mailing List
For list archives: http://lists.mysql.com/java
To unsubscribe:
http://lists.mysql.com/java?unsub=my...T) fsnet.co.uk
--
MySQL Java Mailing List
For list archives: http://lists.mysql.com/java
To unsubscribe: http://lists.mysql.com/java?unsub=my...ie.nctu.edu.tw |