You need to find a forum for your IDE and ask them how to configure it.
Type: Posts; User: Norm
You need to find a forum for your IDE and ask them how to configure it.
Can you successfully compile the program? Does it generate a .class file?
Then you must compile it to create a .class file.
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....
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{...
You won't be able to execute the program without a .class file.
If there are errors, copy and paste the full text here.
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...