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


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 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
at httpget.HttpgetApp.startup(
at org.jdesktop.application.Application$
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 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)