Results 1 to 2 of 2
  1. #1
    PeDz is offline Member
    Join Date
    Feb 2012
    Rep Power

    Default NoClassDefFoundError

    public class HelloWorld {

    public static void main (String[] args){

    System.out.print("Hello World!");

    This is my code but when i run it, I get this:

    java.lang.NoClassDefFoundError: HelloWorld/java
    Caused by: java.lang.ClassNotFoundException:
    at$ 202)
    at Method)
    at ava:190)
    at java.lang.ClassLoader.loadClass( 07)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launche
    at java.lang.ClassLoader.loadClass( 48)
    Could not find the main class: Program will exit.
    Exception in thread "main"
    Process completed.

    Please HELP!! I really need to fix this..

  2. #2
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Voorschoten, the Netherlands
    Blog Entries
    Rep Power

    Default Re: NoClassDefFoundError

    You already asked this in the New To Java forum section; I'm closing this thread.

    kind regards,

    Build a wall around Donald Trump; I'll pay for it.

Similar Threads

  1. NoClassDefFoundError
    By sriram56 in forum IntelliJ IDEA
    Replies: 0
    Last Post: 11-26-2011, 04:04 AM
  2. NoClassDefFoundError
    By Leeish in forum Advanced Java
    Replies: 10
    Last Post: 09-27-2011, 10:08 AM
  3. NoClassDefFoundError
    By bmeu in forum JDBC
    Replies: 1
    Last Post: 10-30-2010, 09:08 PM
  4. NoClassDefFoundError
    By Josisco in forum JDBC
    Replies: 2
    Last Post: 10-30-2010, 09:07 PM
  5. NoClassDefFoundError
    By Dbirge in forum New To Java
    Replies: 0
    Last Post: 03-16-2010, 06:01 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