Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Linux Archive
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 08-23-2008, 11:57 AM
Member
 
Join Date: Aug 2008
Posts: 8
Farzaneh is on a distinguished road
add previous jar library to new one
Hi everyone,

I'm using Eclipse Version: 3.4.0 in debian (kernel 2.6.18-5-686).
I use mysql-connector-java-5.1.5-bin.jar and I added it to the classpath too.
The program works fine when I debug it or run it via Eclipse, but when I export a jar file from it and run the jar file, it gave me "com.mysql.jdbc.Driver" error . It seems it couldn't find mysql-connector-java-5.1.5-bin.jar file.

I should add it works fine when I make jar file with Eclipse on Windows but not in Linux

Does any one know what's causing it and how can I fix it?
Thanks
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 08-23-2008, 04:31 PM
Norm's Avatar
Senior Member
 
Join Date: Jun 2008
Location: Heredia, Costa Rica
Posts: 2,225
Norm is on a distinguished road
Is the needed jar file on the classpath when you execute the program? There is an entry in the jar file's manifest for adding jar files to the classpath. Then make sure the jar file is where the jvm can see it.
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
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
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
help..on Next n Previous Button norazanita New To Java 0 06-12-2008 07:58 AM
Next and Previous Buttons JavaNewb New To Java 1 05-09-2008 03:23 AM
Go back to previous page using session in JSP page gopikarikati009 JavaServer Pages (JSP) and JSTL 0 04-27-2008 06:38 AM
Preventing inserted text from becoming colored from previous style jkhoa AWT / Swing 2 08-10-2007 02:36 AM
Using previous with CardLayout uncopywritable New To Java 2 08-05-2007 11:43 PM


All times are GMT +3. The time now is 01:01 PM.


VBulletin, Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org