Jar Problems
Hey guys, my first post here so sorry if i mess up badly.
Im having some problems with getting my jars to work, I can get a jar file to be created but its not running and wont extract. so here goes.
I have two projects, one is a library and one is an application, the library is button and the project is an app using said button.
I want a jar that will make the allow the app to run (so i guess the library will need to be jarred too).
Whenever i jar them i get this error
DosPrompt
C:\Uni\StreamSoftwareEngineering\CBSD\Classhole>java -jar meterApp.jar
Exception in thread "main" java.lang.NoClassDefFoundError: MeterInterface (wrong
name: org/Dave/CBSD/MeterInterface)
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$100(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
now the source files are in two different files (they are netbeans projects) but they are in the same package. my manifest file looks like this
Manifest
Manifest-Version: 1.0
Main-Class: MeterInterface
Name: MeterInterface.class
Java-Bean: False
Name: MeterButton.class
Java-Bean: True
Can anyone help?
Thanks
CoMa

