Search:

Type: Posts; User: Norm

Search: Search took 0.12 seconds.

  1. Thread: NoClassDefFound

    by Norm
    Replies
    14
    Views
    2,306

    Re: NoClassDefFound

    You need to find a forum for your IDE and ask them how to configure it.
  2. Thread: NoClassDefFound

    by Norm
    Replies
    14
    Views
    2,306

    Re: NoClassDefFound

    Can you successfully compile the program? Does it generate a .class file?
  3. Thread: NoClassDefFound

    by Norm
    Replies
    14
    Views
    2,306

    Re: NoClassDefFound

    Then you must compile it to create a .class file.
  4. Thread: NoClassDefFound

    by Norm
    Replies
    14
    Views
    2,306

    Re: NoClassDefFound

    Where is the the file: ClassMain.class?
    Open a comand prompt, change to the folder holding the ClassMain.class file and issue the command:
    java ClassMain
    This should start your program executing....
  5. Thread: NoClassDefFound

    by Norm
    Replies
    14
    Views
    2,306

    Re: NoClassDefFound

    Sorry, I was referring to the error message. Please copy and paste the full text of the error message here.

    One observation:
    java.lang.NoClassDefFoundError: ClassMain
    vs
    public class MainClass{...
  6. Thread: NoClassDefFound

    by Norm
    Replies
    14
    Views
    2,306

    Re: NoClassDefFound

    You won't be able to execute the program without a .class file.


    If there are errors, copy and paste the full text here.
  7. Thread: NoClassDefFound

    by Norm
    Replies
    14
    Views
    2,306

    Re: NoClassDefFound

    How are you executing the java class? What command are you using?
    Is there a class named ClassMain? Has it been successfully compiled and is there a ClassMain.class file where the java command can...
Results 1 to 7 of 7