Welcome to the Java Programming Forums

The professional, friendly Java community. 21,500 members and growing!

The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 3 of 3

Thread: java.lang.NoClassDefFoundError help?

  1. #1
    Junior Member
    Join Date
    Mar 2012
    Thanked 0 Times in 0 Posts

    Default java.lang.NoClassDefFoundError help?

    I've been using eclipse for all of my programming for a long time, but now when I try to run a program in the command line, I keep getting this error:

    Exception in thread "main" java.lang.NoClassDefFoundError: jGamp (wrong name: org/jMath/PWA/Gamp/jGamp)
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClassCond(ClassLoader. java:631)
    at java.lang.ClassLoader.defineClass(ClassLoader.java :615)
    at java.security.SecureClassLoader.defineClass(Secure ClassLoader.java:141)
    at java.net.URLClassLoader.defineClass(URLClassLoader .java:283)
    at java.net.URLClassLoader.access$000(URLClassLoader. java:58)
    at java.net.URLClassLoader$1.run(URLClassLoader.java: 197)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.j ava:190)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:3 06)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launche r.java:301)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:2 47)

    Any help on this would be greatly appreciated!
    Last edited by softballfrk13608; March 6th, 2012 at 10:54 AM.

  2. #2
    Administrator copeg's Avatar
    Join Date
    Oct 2009
    Thanked 833 Times in 772 Posts
    Blog Entries

    Default Re: java.lang.NoClassDefFoundError help?

    Where is that class/package? It is not part of the standard JRE...is it on the classpath?

  3. #3
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Eastern Florida
    Thanked 2,626 Times in 2,576 Posts

    Default Re: java.lang.NoClassDefFoundError help?

    when I try to run a program in the command line
    Can you post the full text of the command line you are using?

    Do you include the full package path with the class name? Where is the class file located?

Similar Threads

  1. java.lang.NoClassDefFoundError incompatible with
    By mackogacko in forum What's Wrong With My Code?
    Replies: 9
    Last Post: November 30th, 2011, 06:29 AM
  2. Java.lang.NoClassDefFoundError
    By mikedflip2006 in forum Exceptions
    Replies: 0
    Last Post: November 21st, 2011, 11:29 PM
  3. java.lang.NoClassDefFoundError
    By nrao in forum What's Wrong With My Code?
    Replies: 1
    Last Post: January 27th, 2011, 08:18 AM
  4. java.lang.NoClassDefFoundError
    By anonymous001 in forum What's Wrong With My Code?
    Replies: 8
    Last Post: January 26th, 2011, 04:41 PM
  5. Replies: 3
    Last Post: May 15th, 2010, 02:05 PM