Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Can not create Display object
Can not create Display object [message #440827] Sat, 07 August 2004 07:00 Go to next message
Eclipse UserFriend
Originally posted by: linwumeng.163.com

I always get the message:
java.lang.UnsatisfiedLinkError: no swt-win32-3062 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 0)
at org.eclipse.swt.internal.win32.OS.<clinit>(OS.java:18)
at org.eclipse.swt.graphics.Device.init(Device.java:564)
at org.eclipse.swt.widgets.Display.init(Display.java:1780)
at org.eclipse.swt.graphics.Device.<init>(Device.java:100)
at org.eclipse.swt.widgets.Display.<init>(Display.java:355)
at org.eclipse.swt.widgets.Display.<init>(Display.java:351)
at HelloWorld.HelloWorldPlugin.main(HelloWorldPlugin.java:73)
Exception in thread "main"
from Eclipse v3.0 at the statement:
Display dis=new Display();
How can I create a Display object?
Re: Can not create Display object [message #440828 is a reply to message #440827] Sat, 07 August 2004 07:22 Go to previous messageGo to next message
Damien Lecan is currently offline Damien LecanFriend
Messages: 8
Registered: July 2009
Junior Member
Le 07/08/2004 09:00, Lin Wumeng a &eacute;crit :
> I always get the message:
> java.lang.UnsatisfiedLinkError: no swt-win32-3062 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 0)
> at org.eclipse.swt.internal.win32.OS.<clinit>(OS.java:18)
> at org.eclipse.swt.graphics.Device.init(Device.java:564)
> at org.eclipse.swt.widgets.Display.init(Display.java:1780)
> at org.eclipse.swt.graphics.Device.<init>(Device.java:100)
> at org.eclipse.swt.widgets.Display.<init>(Display.java:355)
> at org.eclipse.swt.widgets.Display.<init>(Display.java:351)
> at HelloWorld.HelloWorldPlugin.main(HelloWorldPlugin.java:73)
> Exception in thread "main"
> from Eclipse v3.0 at the statement:
> Display dis=new Display();
> How can I create a Display object?
Add
-Djava.library.path=D:\path-to-eclipse\plugins\org.eclipse.s wt.win32_3.0.0\os\win32\x86
to vm arguments of your application.

Damien
Re: Can not create Display object [message #440862 is a reply to message #440828] Sat, 07 August 2004 18:33 Go to previous message
Eclipse UserFriend
Originally posted by: gilblais.yahoo.com

Another way, which I find easier, is to copy the DLL to the \bin directory
of my Java jre that is already known to the system. I copied it into my:
C:\jre1.5.0\bin directory

"Damien Lecan" <nimportekoi@fkjghfd.com> wrote in message
news:cf1vrc$n2$1@eclipse.org...
> Le 07/08/2004 09:00, Lin Wumeng a &eacute;crit :
> > I always get the message:
> > java.lang.UnsatisfiedLinkError: no swt-win32-3062 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 0)
> > at org.eclipse.swt.internal.win32.OS.<clinit>(OS.java:18)
> > at org.eclipse.swt.graphics.Device.init(Device.java:564)
> > at org.eclipse.swt.widgets.Display.init(Display.java:1780)
> > at org.eclipse.swt.graphics.Device.<init>(Device.java:100)
> > at org.eclipse.swt.widgets.Display.<init>(Display.java:355)
> > at org.eclipse.swt.widgets.Display.<init>(Display.java:351)
> > at HelloWorld.HelloWorldPlugin.main(HelloWorldPlugin.java:73)
> > Exception in thread "main"
> > from Eclipse v3.0 at the statement:
> > Display dis=new Display();
> > How can I create a Display object?
> Add
> -Djava.library.path=D:\path-to-eclipse\plugins\org.eclipse.s wt.win32_3.0.0
\os\win32\x86
> to vm arguments of your application.
>
> Damien
Previous Topic:Problem : EXCEPTION_ACCESS_VIOLATION
Next Topic:Bad font rendering on text of toolitem if displayed with an image
Goto Forum:
  


Current Time: Thu Apr 25 01:36:08 GMT 2024

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

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

Back to the top