4 Replies - 1025 Views - Last Post: 16 August 2007 - 01:42 AM Rate Topic: -----

#1 jinu5  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 2
  • Joined: 15-August 07

jar file problem please help

Post icon  Posted 15 August 2007 - 01:54 PM

hi,
i have converted my java project into a jar file.it is not accessing the mysql database.normal project(uncompressed) works well.pls help pls reply soon.
jinu
Is This A Good Question/Topic? 0
  • +

Replies To: jar file problem please help

#2 1lacca  Icon User is offline

  • code.rascal
  • member icon

Reputation: 44
  • View blog
  • Posts: 3,822
  • Joined: 11-August 05

Re: jar file problem please help

Posted 15 August 2007 - 02:06 PM

Do you receive any exceptions?
Are the mysql driver jars accessible by your application?
Was This Post Helpful? 0
  • +
  • -

#3 jinu5  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 2
  • Joined: 15-August 07

Re: jar file problem please help

Posted 16 August 2007 - 12:18 AM

thanks for replying
no exceptions are shown. but no data exchange between mysql database and the application.


please tell me how to access mysql driver jars .i have no idea

i just converted my java project by typing

"jar cfm project.jar manifest.mf *.class" in the command line

i gave Main-Class: "classname of the main form"
Classpath: .\project.jar in the manifest file

jar file created and login page(main form) comes
but it is not validating the userid and password as it has no access to the database.

i am new to mysql database

please help me .i am in a great need...

when i was using ms access as the database, there was no problem with the jar files to access the database.
pls reply
jinu
Was This Post Helpful? 0
  • +
  • -

#4 1lacca  Icon User is offline

  • code.rascal
  • member icon

Reputation: 44
  • View blog
  • Posts: 3,822
  • Joined: 11-August 05

Re: jar file problem please help

Posted 16 August 2007 - 01:34 AM

How did you run your project before adding it to the jar?
Was This Post Helpful? 0
  • +
  • -

#5 ewh  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 7
  • Joined: 16-August 07

Re: jar file problem please help

Posted 16 August 2007 - 01:42 AM

View Postjinu5, on 16 Aug, 2007 - 12:18 AM, said:

i gave Main-Class: "classname of the main form"
Classpath: .\project.jar in the manifest file


You don't need to put project.jar on the classpath. You probably need to put the mysql driver jar on there though.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1