M
M K
I have created 2 forms and they are in the same
folder(c:\xxx\xxx\ListSaver2). I put
package ListSaver2;
at the top of each .java file
When I compile the application 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
}
I am able to build and complie each one w/o any errors but when I try to run
the app
I get the errors.
I can send more code if needed but it is a lot so I try to submit just what
is needed (which may or may not be enough). I was hoping that someone could
point me where in my code the problem could be.
Thanks for any help in advance.
Mark
folder(c:\xxx\xxx\ListSaver2). I put
package ListSaver2;
at the top of each .java file
When I compile the application 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
}
I am able to build and complie each one w/o any errors but when I try to run
the app
I get the errors.
I can send more code if needed but it is a lot so I try to submit just what
is needed (which may or may not be enough). I was hoping that someone could
point me where in my code the problem could be.
Thanks for any help in advance.
Mark