getting a NoClassDefFoundError
I've created a simple "Hello World"-Example with AWT, a small window pops up saying "Hello World". When bundling the application in a jar-file (I called it "ShowHelloworld.jar"), everything works fine. But when I try to run the file, I'm getting the NoClassDefFoundError:
C:\JBuilder4\jdk1.3\bin > java -jar ShowHelloworld.jar
Exception in thread"main" java.lang.NoClassDefFoundError: ShowHelloworld (wrong name: helloworld/ShowHelloworld)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:486)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:111)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:248)
at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:297)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:286)
at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)
This is my manifest-file:
Manifest-Version: 1.0
Main-Class: ShowHelloworld
Created-By: 1.3.0 (Sun Microsystems Inc.)
This file contains two classes: ShowHelloworld.class (which contains the main-class) and ShowHelloworld$1.class.
What have I done wrong?

