| View previous topic :: View next topic |
| Author |
Message |
bthayer
Joined: 19 Mar 2009 Posts: 5
|
Posted: Tue Nov 03, 2009 11:01 pm Post subject: Class-Path: not written to MANIFEST.MF - duplicate - admin plz delete |
|
|
Hello,
I've been trying all day to get NetBeans to add the Class-Path to MANIFEST.MF. My project ModelingTools needs two jar files, Touchstone.jar and Flanagan.jar. I can build and run my app from within the IDE but when from the command line...
| Code: | | java -classpath ~/java/ModelingTools/dist/ModelingTools.jar model.TouchstoneAverager |
...My app runs until it needs to create a Touchstone Object...
| Code: | Exception in thread "main" java.lang.NoClassDefFoundError: touchstone/Touchstone
at model.TouchstoneAverager.main(TouchstoneAverager.java:61) |
In Netbeans I edited manifest.mf so it reads...
| Code: | Manifest-Version: 1.0
X-COMMENT: Main-Class will be added automatically by build
Class-Path: lib/Touchstone.jar lib/Flanagan.jar
|
...but the MANIFEST.MF file still reads...
| Code: | Manifest-Version: 1.0
Ant-Version: Apache Ant 1.7.1
Created-By: 11.3-b02 (Sun Microsystems Inc.) |
...The jar files are in the lib folder as expected.
I have done many searches but have not come across this exact situation.
Thank you,
Bill T.
Dallas, TX
NB 6.7.1 on Windows XP SP2, running my App on Solaris 10. _________________ I've got the fever and the only cure is more cowbell. |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You can attach files in this forum You can download files in this forum
|
|
|
|