hey everyone,
i am a new developer using the bluej IDE on mac 10.6. Whenever i use the virtual terminal to execute, it works perfectly. the other day, i attempted to export the file to a JAR file through the programs basic functionality, as JAR files are natively run on macs. Everything works fine, I define the main class, include the source code, it exports with no problem. However, whenever i try to launch it, i get the error message:
"The Java JAR file "Pythagorean.jar" could not be launched. Check the console for possible error messages."
So i tried launching it using the java (file path) command, and i get the following error;
"Exception in thread "main" java.lang.NoClassDefFoundError: /Users/tstacey95/Desktop/Pythagorean/jar
Caused by: java.lang.ClassNotFoundException: .Users.tstacey95.Desktop.Pythagorean.jar
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
Please help, as i am anxious to get the file exported and ready for distribution as a JAR file.