Libraries and JAR files in netbeans... how to build and deploy a project??
807605Oct 12 2007 — edited Oct 15 2007Hi guys,
<p>
I'm having a problem deploying my project. I have created a project structure as so:
</p>
<p>
CLOGE 1.0
|_Source Packages
| |_rdemo
| |_ClogeGUI.java [main]
| |_ClogeRScript.java
|_Libraries
|_Swing Layout Extensions - swing-layout-1.0.jar
|_C:\CLOGE\JRclient [folder structure of classes]
| |_META-INF
| |_org.rosuda.JRclient
|_C:\CLOGE\svgSalamander-tiny [folder structure of classes]
| |_META-INF
| |_com.kitfox.svg
| |_...
|_JDK 1.6 (Default)
</p>
<p>
Now I can build and run the project in Netbeans (version 5.5) and everything operates as it should. However, if I navigate to the dist folder of the project to the CLOGE_1.0.jar file via the Windows XP Command Prompt and execute "java -jar "CLOGE_1.0.jar", I get this error:
</p>
<p>
Exception in thread "main" java.lang.NoClassDefFoundError: org/rosuda/JRclient/RSrvException<br/>
at rdemo.ClogeGUI.clogeRScript(ClogeGUI.java:134)<br/>
at rdemo.ClogeGUI.main(ClogeGUI.java:259)<br/>
</p>
<p>
What do I have to do, so I can simply double-click the CLOGE_1.0.jar file and the project runs?
</p>
<p>
Many thanks,<br/>
Chris
</p>
Edited by: raistrick on Oct 12, 2007 4:49 AM