Im using netbeans and have learned that one should not use default package for larger programs.
Have created a package for all .gif files and a package for the logical classes.
Now the program cant even compile in the normal way.
Error message:
Quote
java.lang.NoClassDefFoundError: NewJFrame
Caused by: java.lang.ClassNotFoundException: NewJFrame
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
Could not find the main class: NewJFrame. Program will exit.
Exception in thread "main" Java Result: 1
I can run the NewJFrame by rightclicking and choosing "run file". But now the images cant be seen.
Cant figure out how to import the images to NewJFrame
import programName.imagePackage;
or
import imagePackage;
doesnt work

Any help is welcome
