Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Libraries and JAR files in netbeans... how to build and deploy a project??

807605Oct 12 2007 — edited Oct 15 2007
Hi 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
|&nbsp;&nbsp;|_rdemo
|&nbsp;&nbsp;&nbsp;&nbsp;|_ClogeGUI.java [main]
|&nbsp;&nbsp;&nbsp;&nbsp;|_ClogeRScript.java
|_Libraries
&nbsp;&nbsp;&nbsp;|_Swing Layout Extensions - swing-layout-1.0.jar
&nbsp;&nbsp;&nbsp;|_C:\CLOGE\JRclient [folder structure of classes]
&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;|_META-INF
&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;|_org.rosuda.JRclient
&nbsp;&nbsp;&nbsp;|_C:\CLOGE\svgSalamander-tiny [folder structure of classes]
&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;|_META-INF
&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;|_com.kitfox.svg
&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;|_...
&nbsp;&nbsp;&nbsp;|_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/>
&nbsp;&nbsp;at rdemo.ClogeGUI.clogeRScript(ClogeGUI.java:134)<br/>
&nbsp;&nbsp;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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 12 2007
Added on Oct 12 2007
8 comments
760 views