Skip to main content



      Home
Home » Eclipse Projects » GEF » no swt-win32-2132 when trying to compile Simpel charts example
no swt-win32-2132 when trying to compile Simpel charts example [message #73608] Mon, 31 March 2003 17:06 Go to next message
Eclipse UserFriend
Originally posted by: dev.abgraph.com

Hi,

I am new to Java and trying to build the simplest of all gef examples:
http://eclipsewiki.swiki.net/50#simpleCharts
I am following the instructions only replacing the

import com.ibm.etools.draw2d.*;
import com.ibm.etools.draw2d.geometry.*;

to:

import org.eclipse.draw2d.*;
import org.eclipse.draw2d.geometry.*;

I am getting the following Console output when trying to run the sample:

java.lang.UnsatisfiedLinkError: no swt-win32-2132 in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1403)
at java.lang.Runtime.loadLibrary0(Runtime.java:788)
at java.lang.System.loadLibrary(System.java:832)
at org.eclipse.swt.internal.Library.loadLibrary(Library.java:10 4)
at org.eclipse.swt.internal.win32.OS.<clinit>(OS.java:42)
at org.eclipse.swt.widgets.Display.internal_new_GC(Display.java :1230)
at org.eclipse.swt.graphics.Device.init(Device.java:543)
at org.eclipse.swt.widgets.Display.init(Display.java:1249)
at org.eclipse.swt.graphics.Device.<init>(Device.java:92)
at org.eclipse.swt.widgets.Display.<init>(Display.java:287)
at org.eclipse.swt.widgets.Display.<init>(Display.java:283)
at ChartDemo.main(ChartDemo.java:34)
Exception in thread "main"

Anyboy any clue as to what may be wrong?

I am using Version: 2.1.0 Build id: 200303071024 on j2sdk1.4.1_02

Any suggestions or help more than welcome!

Gert
Re: no swt-win32-2132 when trying to compile Simpel charts example [message #73660 is a reply to message #73608] Mon, 31 March 2003 21:10 Go to previous messageGo to next message
Eclipse UserFriend
> I am getting the following Console output when trying to run the sample:

This happens when you try to run some SWT code as a stand-alone (i.e. not as
part of an Eclipse tool).

See
http://www.eclipse.org/documentation/html/plugins/org.eclips e.platform.doc.i
sv/doc/samples/org.eclipse.swt.examples/doc-html/swt_manual_ setup.html for
the instructions on how to run SWT code in stand-alone mode.

The short answer (derived from that document) is:
In the Windows Explorer:
1. navigate down to the
<install-dir>\eclipse\plugins\org.eclipse.swt\ws\win32 directory. Copy the
path onto the clipboard.
In Eclipse:
1. Open ChartDemo.java
2. Go to the Run menu and select Run...
3.Find "ChartDemo" under "Java Application". (If it's not there, press "New"
and fill in the first tab)
4. Select the "Arguments" tab.
5. Under 'VM Arguments", type "Djava.library.path=" then paste in the path
you copied from Windows. On my machine, the line reads
" -Djava.library.path=\eclipse\plugins\org.eclipse.swt.win32_2 .1.0\os\win32\x
86"

Now you can run the code as a standalone.

....Richard
Re: no swt-win32-2132 when trying to compile Simpel charts example [message #73818 is a reply to message #73660] Tue, 01 April 2003 02:50 Go to previous message
Eclipse UserFriend
Originally posted by: dev.abgraph.com

It's 8:49am here, but already, you made my day!

Thanks,

Gert
Previous Topic:GEF crashes machine
Next Topic:Gef Release??
Goto Forum:
  


Current Time: Fri May 09 20:24:04 EDT 2025

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

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

Back to the top