Hi,
My code is organized in the following way
projectFolder/source/all .java files and
projectFolder/classes/all .class files
The class path is set to project/classes
Now when i compile my Main.java class from source folder, a Main.class is generated in classes folder.
Now when i try to run the program using java Main by navigating to corresponding classes folder i am getting the following error.
Exception in thread "main" java.lang.NoClassDefFoundError: Main (wrong name: ie/d
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:791)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142
at java.net.URLClassLoader.defineClass(URLClassLoader.java:449)
at java.net.URLClassLoader.access$100(URLClassLoader.java:71)
at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
at java.lang.ClassLoader.loadClass(ClassLoader.java:423)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:472)
Can anyone let me know where am i wrong ?