|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
NoClassDefFoundError
I have created 2 forms and they are in the same folder. I put
package ListSaver2; at the top of each .java file When I compile I get this.. java.lang.NoClassDefFoundError: DataStorageFacility (wrong name: ListSaver2/DataStorageFacility) at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java :539) at java.security.SecureClassLoader.defineClass(Secure ClassLoader.java:123) at java.net.URLClassLoader.defineClass(URLClassLoader .java:251) at java.net.URLClassLoader.access$100(URLClassLoader. java:55) at java.net.URLClassLoader$1.run(URLClassLoader.java: 194) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.j ava:187) at java.lang.ClassLoader.loadClass(ClassLoader.java:2 89) at sun.misc.Launcher$AppClassLoader.loadClass(Launche r.java:274) at java.lang.ClassLoader.loadClass(ClassLoader.java:2 35) at java.lang.ClassLoader.loadClassInternal(ClassLoade r.java:302) Exception in thread "main" Here is main: public static void main(String args[]) { new DataStorageFacility().show(); //trying to show itself } |
|
#2
|
||||
|
||||
|
What is DataStorageFacility?
is it a part of the same package? |
|
#3
|
|||
|
|||
|
Quote:
Yes. I just found the problem. I mounted the wrong folder. I went up one level and now it works. |
![]() |
| Viewing: Dev Articles Community Forums > Programming > Java Development > NoClassDefFoundError |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|