This discussion is archived
2 Replies Latest reply: Dec 20, 2008 4:21 PM by 843785 RSS

Error in deploying jar file in my friends computer

843785 Newbie
Currently Being Moderated
I use Netbeans 6.5

I created a "Java Desktop Application". Project name is httpget. I completed the coding.

I needed an executable JAR file.. So i build the project and got my .jar file..

In the httpget\dist folder, the following files are found

httpget.jar
readme.txt
lib\appframework-1.0.3.jar
lib\swing-worker-1.1.jar

when i double click the httpget.jar file, my application worked perfectly..
but i wanted to send this app to my friend.. So i added to folder to dist.zip and mailed him..

after he extracted, he ran the jar file with following commands

java -jar httpget.jar

But he got the following errors

Exception in thread "AWT-EventQueue-0" java.lang.NoClassDefFoundError: javax/swi
ng/GroupLayout$Group
at httpget.HttpgetApp.startup(HttpgetApp.java:19)
at org.jdesktop.application.Application$1.run(Application.java:171)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)

at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)

He has installed JRE.. He has also added the classpath to the two jar files under the lib folder..

what he should do to run this app successfully?

(i tried jsmooth to obtain exe file from the above jar file, but it also failed)