Original Post
I have just started to learn Java and the first program I do is a "Hello world!"-application. I have then no problems of compiling it but when I run the class-file by writing >java Hello, I get this error: java.lang.NoClassDefFoundError: helloworldapp/Hello Exception in thread "main" What does that mean and what do you do about it? This is how I wrote the code: import javax.swing.*; public class Hello { public static void main (String[] args) { JOptionPane.showMessageDialog(null, "Hello World!"); System.exit(0); } }