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 Source) at Source) at$000(Unknown Source) at$ Source) at Method) at 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