Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » java.lang.UnsatisfiedLinkError: no swt-win32-2133 in java.library.path
java.lang.UnsatisfiedLinkError: no swt-win32-2133 in java.library.path [message #42881] Thu, 29 May 2003 09:20 Go to next message
Eclipse UserFriend
Originally posted by: yogeeshwar.hotmail.com

Hi,
When I am running the below code
------------------
package org.eclipse.examples.helloworld;
import org.eclipse.swt.widgets.*;

public class HelloWorld
{
public static void main (String [] args) {
Display display = new Display ();
Shell shell = new Shell(display);
shell.open ();
while (!shell.isDisposed ()) {
if (!display.readAndDispatch ()) display.sleep ();
}
display.dispose ();
}
}
--------------------
I am getting the folowing error at run time
---
ava.lang.UnsatisfiedLinkError: no swt-win32-2133 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:10 8)
at org.eclipse.swt.internal.win32.OS.<clinit>(OS.java:46)
at org.eclipse.swt.widgets.Display.internal_new_GC(Display.java :1291)
at org.eclipse.swt.graphics.Device.init(Device.java:547)
at org.eclipse.swt.widgets.Display.init(Display.java:1310)
at org.eclipse.swt.graphics.Device.<init>(Device.java:96)
at org.eclipse.swt.widgets.Display.<init>(Display.java:291)
at org.eclipse.swt.widgets.Display.<init>(Display.java:287)
at org.eclipse.examples.helloworld.HelloWorld.main(HelloWorld.j ava:10)
Exception in thread "main"
----------

What libraries I ahve to add to run it properly. I am very thankful to you.

Yogi.
Re: java.lang.UnsatisfiedLinkError: no swt-win32-2133 in java.library.path [message #42943 is a reply to message #42881] Thu, 29 May 2003 09:58 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: hcs33.egon.gyaloglo.hu

Hi,

http://dev.eclipse.org/viewcvs/index.cgi/~checkout~/platform -swt-home/faq.ht
ml#missingdll (url may wrap)

Regards,
Csaba

"byreddy" <yogeeshwar@hotmail.com> wrote in message
news:bb51fl$uq0$1@rogue.oti.com...
> Hi,
> When I am running the below code
> ------------------
> package org.eclipse.examples.helloworld;
> import org.eclipse.swt.widgets.*;
>
> public class HelloWorld
> {
> public static void main (String [] args) {
> Display display = new Display ();
> Shell shell = new Shell(display);
> shell.open ();
> while (!shell.isDisposed ()) {
> if (!display.readAndDispatch ()) display.sleep ();
> }
> display.dispose ();
> }
> }
> --------------------
> I am getting the folowing error at run time
> ---
> ava.lang.UnsatisfiedLinkError: no swt-win32-2133 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:10 8)
> at org.eclipse.swt.internal.win32.OS.<clinit>(OS.java:46)
> at org.eclipse.swt.widgets.Display.internal_new_GC(Display.java :1291)
> at org.eclipse.swt.graphics.Device.init(Device.java:547)
> at org.eclipse.swt.widgets.Display.init(Display.java:1310)
> at org.eclipse.swt.graphics.Device.<init>(Device.java:96)
> at org.eclipse.swt.widgets.Display.<init>(Display.java:291)
> at org.eclipse.swt.widgets.Display.<init>(Display.java:287)
> at org.eclipse.examples.helloworld.HelloWorld.main(HelloWorld.j ava:10)
> Exception in thread "main"
> ----------
>
> What libraries I ahve to add to run it properly. I am very thankful to
you.
>
> Yogi.
>
Re: java.lang.UnsatisfiedLinkError: no swt-win32-2133 in java.library.path [message #42975 is a reply to message #42943] Thu, 29 May 2003 10:15 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: yogeeshwar.hotmail.com

Thank you so much, It worked
Yogi.
--------------------
Horváth, Csaba wrote:

> Hi,

> http://dev.eclipse.org/viewcvs/index.cgi/~checkout~/platform -swt-home/faq.ht
> ml#missingdll (url may wrap)

> Regards,
> Csaba

> "byreddy" <yogeeshwar@hotmail.com> wrote in message
> news:bb51fl$uq0$1@rogue.oti.com...
> > Hi,
> > When I am running the below code
> > ------------------
> > package org.eclipse.examples.helloworld;
> > import org.eclipse.swt.widgets.*;
> >
> > public class HelloWorld
> > {
> > public static void main (String [] args) {
> > Display display = new Display ();
> > Shell shell = new Shell(display);
> > shell.open ();
> > while (!shell.isDisposed ()) {
> > if (!display.readAndDispatch ()) display.sleep ();
> > }
> > display.dispose ();
> > }
> > }
> > --------------------
> > I am getting the folowing error at run time
> > ---
> > ava.lang.UnsatisfiedLinkError: no swt-win32-2133 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:10 8)
> > at org.eclipse.swt.internal.win32.OS.<clinit>(OS.java:46)
> > at org.eclipse.swt.widgets.Display.internal_new_GC(Display.java :1291)
> > at org.eclipse.swt.graphics.Device.init(Device.java:547)
> > at org.eclipse.swt.widgets.Display.init(Display.java:1310)
> > at org.eclipse.swt.graphics.Device.<init>(Device.java:96)
> > at org.eclipse.swt.widgets.Display.<init>(Display.java:291)
> > at org.eclipse.swt.widgets.Display.<init>(Display.java:287)
> > at org.eclipse.examples.helloworld.HelloWorld.main(HelloWorld.j ava:10)
> > Exception in thread "main"
> > ----------
> >
> > What libraries I ahve to add to run it properly. I am very thankful to
> you.
> >
> > Yogi.
> >
Re: java.lang.UnsatisfiedLinkError: no swt-win32-2133 in java.library.path [message #43303 is a reply to message #42881] Thu, 29 May 2003 13:59 Go to previous message
Eclipse UserFriend
Originally posted by: hallorant.yahoo.com

You need to add the swt.jar into your classpath...this is done in the
project properties on my linux install they are here within the eclipse
install directory:

{gs06:~/bin/eclipse} find . -name \*.jar -print | grep swt\*
../plugins/org.eclipse.swt.gtk_2.1.0/ws/gtk/swt-pi.jar
../plugins/org.eclipse.swt.gtk_2.1.0/ws/gtk/swt.jar



byreddy wrote:
> Hi,
> When I am running the below code
> ------------------
> package org.eclipse.examples.helloworld;
> import org.eclipse.swt.widgets.*;
>
> public class HelloWorld
> {
> public static void main (String [] args) {
> Display display = new Display ();
> Shell shell = new Shell(display);
> shell.open ();
> while (!shell.isDisposed ()) {
> if (!display.readAndDispatch ()) display.sleep ();
> }
> display.dispose ();
> }
> }
> --------------------
> I am getting the folowing error at run time
> ---
> ava.lang.UnsatisfiedLinkError: no swt-win32-2133 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:10 8)
> at org.eclipse.swt.internal.win32.OS.<clinit>(OS.java:46)
> at org.eclipse.swt.widgets.Display.internal_new_GC(Display.java :1291)
> at org.eclipse.swt.graphics.Device.init(Device.java:547)
> at org.eclipse.swt.widgets.Display.init(Display.java:1310)
> at org.eclipse.swt.graphics.Device.<init>(Device.java:96)
> at org.eclipse.swt.widgets.Display.<init>(Display.java:291)
> at org.eclipse.swt.widgets.Display.<init>(Display.java:287)
> at org.eclipse.examples.helloworld.HelloWorld.main(HelloWorld.j ava:10)
> Exception in thread "main"
> ----------
>
> What libraries I ahve to add to run it properly. I am very thankful to you.
>
> Yogi.
>
Previous Topic:problem: tooltips not working
Next Topic:Associate .java files with Eclipse (Windows)
Goto Forum:
  


Current Time: Tue Jul 15 18:20:05 EDT 2025

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

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

Back to the top