Results 1 to 4 of 4
  1. #1
    rchawla is offline Member
    Join Date
    Oct 2012
    Posts
    2
    Rep Power
    0

    Default Error in java.lang.NoClassDefFounderror

    Hello All,

    I am new to Java and I have a very simple question.I have a program which is calling the method in a .jar file.At complie time it gets compiled successfully.
    However at runtime I get an error while trying to invoke the method in tha jar.
    Error string is
    Exception in thread main java.lang.NoClassDefFounderror
    at com.abc.edit.setBy

    Name of the method is setBy .Please note below things have already been checked
    1)JAR files is added in the project
    2)It is being reflected in .classpath file


    Any pointers?

    Thanks,
    Rohit

  2. #2
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    11,949
    Rep Power
    19

    Default Re: Error in java.lang.NoClassDefFounderror

    How are you running this?
    Because that error implies that jar file is not on your runtime classpath.
    Please do not ask for code as refusal often offends.

    ** This space for rent **

  3. #3
    rchawla is offline Member
    Join Date
    Oct 2012
    Posts
    2
    Rep Power
    0

    Default Re: Error in java.lang.NoClassDefFounderror

    Hi,

    I am running it through Eclipse.Sorry I am not sure how to add it in runtime class path.

    Thanks

  4. #4
    gowthamgutha is offline Member
    Join Date
    Sep 2012
    Location
    Guntur, India
    Posts
    27
    Rep Power
    0

    Default Re: Error in java.lang.NoClassDefFounderror

    There may be problem with your IDE, i think so? not sure.

Similar Threads

  1. java.lang.NoClassDefFoundError
    By BoomPony in forum New To Java
    Replies: 8
    Last Post: 01-05-2011, 05:36 PM
  2. Replies: 5
    Last Post: 06-02-2010, 01:05 PM
  3. Replies: 3
    Last Post: 06-01-2010, 03:01 PM
  4. java.lang.NoClassDefFoundError
    By noobie in forum Java Applets
    Replies: 5
    Last Post: 04-22-2009, 02:35 AM
  5. java.lang.NoClassDefFoundError
    By fred in forum Advanced Java
    Replies: 3
    Last Post: 08-01-2007, 05:00 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
  •