2 messages in com.mysql.lists.javaRe: Problem with Connector/J and Main...
FromSent OnAttachments
d395...@est.fib.upc.edu24 Feb 2005 09:01 
Mysql list24 Feb 2005 12:18 
Subject:Re: Problem with Connector/J and Main-Class manifest
From:Mysql list (mys@jrneale.fsnet.co.uk)
Date:02/24/2005 12:18:18 PM
List:com.mysql.lists.java

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: <d395@est.fib.upc.edu> To: <ja@lists.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