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 2 of 2

Thread: java.lang.NoClassDefFoundError

  1. #1
    Join Date
    Nov 2010
    Thanked 0 Times in 0 Posts

    Default java.lang.NoClassDefFoundError

    Iam trying to run a Hello.java file as java application in eclipse iamgetting the below exception.
    java.lang.NoClassDefFoundError: C:workspace\baseexample
    Caused by: java.lang.ClassNotFoundException: C:workspace\baseexample
    at java.net.URLClassLoader$1.run(URLClassLoader.java: 202)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.j ava:190)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:3 07)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launche r.java:301)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:2 48)
    Exception in thread "main"
    please can someone help me with this.

  2. #2
    Crazy Cat Lady KevinWorkman's Avatar
    Join Date
    Oct 2010
    Washington, DC
    My Mood
    Thanked 698 Times in 595 Posts

    Default Re: java.lang.NoClassDefFoundError

    Quote Originally Posted by nrao View Post
    please can someone help me with this.
    Not until we see an SSCCE (that's a link) and exactly how you're trying to run the program.

    You might want to give this a read: Setting the class path
    How to Ask Questions the Smart Way
    Static Void Games - GameDev tutorials, free Java and JavaScript hosting!
    Static Void Games forum - Come say hello!

Similar Threads

  1. java.lang.NoClassDefFoundError
    By anonymous001 in forum What's Wrong With My Code?
    Replies: 8
    Last Post: January 26th, 2011, 04:41 PM
  2. Replies: 13
    Last Post: October 13th, 2010, 12:20 PM
  3. Replies: 3
    Last Post: May 15th, 2010, 03:05 PM
  4. Replies: 2
    Last Post: November 3rd, 2009, 06:28 AM
  5. Replies: 1
    Last Post: October 25th, 2009, 12:54 PM