Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » SWT - An exception Occurred when running the executable Jar
SWT - An exception Occurred when running the executable Jar [message #1694411] Tue, 05 May 2015 08:03 Go to next message
Subramanian Santhanam is currently offline Subramanian SanthanamFriend
Messages: 2
Registered: May 2015
Junior Member
Hi,

I am a newbie to SWT. I am fixing an existing application. After doing the fix, I created the executable JAR file. But when I try to run it I got "An exception occurred" error message. When I issue "java -jar MyApp.jar" in the command prompt, I got the following exception.
Exception in thread "main" java.lang.UnsatisfiedLinkError: no swt-win32-3236 in
java.library.path
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.loadLibrary0(Unknown Source)
at java.lang.System.loadLibrary(Unknown Source)
at org.eclipse.swt.internal.Library.loadLibrary(Library.java:123)
at org.eclipse.swt.internal.win32.OS.<clinit>(OS.java:18)
at org.eclipse.swt.widgets.Widget.<clinit>(Widget.java:95)

But I downloaded "swt-3.2.2-win32-win32-x86.zip" from eclipse archive site, extracted and added it as reference project to my application.

Kindly let me know your thoughts in resolving this issue.

Regards,
Subramanian S.

Re: SWT - An exception Occurred when running the executable Jar [message #1694472 is a reply to message #1694411] Tue, 05 May 2015 14:09 Go to previous messageGo to next message
Eric Rizzo is currently offline Eric RizzoFriend
Messages: 3071
Registered: July 2009
Senior Member
Moving this to the SWT forum.
Re: SWT - An exception Occurred when running the executable Jar [message #1694714 is a reply to message #1694472] Thu, 07 May 2015 10:30 Go to previous message
Niraj Modi is currently offline Niraj ModiFriend
Messages: 48
Registered: November 2013
Member
Hi,
For compiling your code you added swt.jar in your classpath to generate your application jar.
But when you launch it form command line you also need to have swt.jar in classpath
Previous Topic:Terrible scrolling and typing performance on Kubuntu 15.04
Next Topic:Column group in swt/jface Table
Goto Forum:
  


Current Time: Thu Jan 21 11:12:30 GMT 2021

Powered by FUDForum. Page generated in 0.02021 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top