Results 1 to 2 of 2
  1. #1
    bmeu is offline Member
    Join Date
    Oct 2010
    Posts
    3
    Rep Power
    0

    Default NoClassDefFoundError

    On exact same issue as poster, where I have added the jar file to the project through Netbeans only and getting the same error.

    From adding the jar file to the library, is the following code necessary in anyway?
    " System.out.println("Usage: java -classpath driver_class_path"
    +File.pathSeparator
    +". TestDB database.properties");"

    and if so, how would it be implemented when the jar files and TestDB.class files are stored in different folders within the local directory.

    (Not Hi-Jacking the thread, as I know me and the OP share same issue exactly.)

  2. #2
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    25

    Default

    Moved from this post: http://www.java-forums.org/database/...ounderror.html

    And yes, it's a hijack because even though you have the same error, you are in different environments (the OP in the other post makes no mention of NetBeans for instance) and likely have different causes.

Similar Threads

  1. NoClassDefFoundError
    By Josisco in forum JDBC
    Replies: 2
    Last Post: 10-30-2010, 08:07 PM
  2. noClassDefFoundError
    By imorio in forum Eclipse
    Replies: 11
    Last Post: 08-21-2010, 07:45 PM
  3. NoClassDefFoundError
    By Dbirge in forum New To Java
    Replies: 0
    Last Post: 03-16-2010, 05:01 PM
  4. help with NoClassDefFoundError
    By chikoyzki06 in forum New To Java
    Replies: 2
    Last Post: 11-25-2009, 11:38 AM
  5. NoClassDefFoundError
    By jon80 in forum New To Java
    Replies: 3
    Last Post: 05-18-2008, 12:20 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
  •