dbTalk Databases Forums  

Problem with Connector/J and Main-Class manifest

mailing.database.mysql-java mailing.database.mysql-java


Discuss Problem with Connector/J and Main-Class manifest in the mailing.database.mysql-java forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
d3957695@est.fib.upc.edu
 
Posts: n/a

Default Problem with Connector/J and Main-Class manifest - 02-24-2005 , 11:03 AM






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...ie.nctu.edu.tw


Reply With Quote
  #2  
Old   
Mysql list
 
Posts: n/a

Default 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


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.