Anonymous - 2011-06-17

Hi team, i have a javacode, i wish to make an exe by the help of Launch4j, while i'm create the code using tool. After creating the code click build button it displays,

Compiling resources
  Linking Successfully created C:\Users\FSSD\Desktop\MyProject\install\MyProject.exe

After i click Run button it shows an err in Main class.

Executing: C:\Users\FSSD\Desktop\MyProject\install\MyProject.exe java.lang.NoClassDefFoundError: JavaSamp (wrong name: com/demo/test/JavaSamp) at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClassCond(Unknown Source) at java.lang.ClassLoader.defineClass(Unknown Source) at java.security.SecureClassLoader.defineClass(Unknown Source) at java.net.URLClassLoader.defineClass(Unknown Source) at java.net.URLClassLoader.access$000(Unknown Source) at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) Exception in thread "main"

why this error will arise..if it possible to recover it..Thanks in advance