Results 1 to 2 of 2
  1. #1
    Farzaneh is offline Member
    Join Date
    Aug 2008
    Rep Power

    Default 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?

  2. #2
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    On vacation
    Rep Power


    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.

Similar Threads

  1. Go back to previous page using session in JSP page
    By gopikarikati009 in forum JavaServer Pages (JSP) and JSTL
    Replies: 2
    Last Post: 06-23-2011, 10:30 AM
  2. help..on Next n Previous Button
    By norazanita in forum New To Java
    Replies: 0
    Last Post: 06-12-2008, 05:58 AM
  3. Next and Previous Buttons
    By JavaNewb in forum New To Java
    Replies: 1
    Last Post: 05-09-2008, 01:23 AM
  4. Replies: 2
    Last Post: 08-10-2007, 12:36 AM
  5. Using previous with CardLayout
    By uncopywritable in forum New To Java
    Replies: 2
    Last Post: 08-05-2007, 09:43 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts