|
Re: How to export Java Project and run outside of eclipse [message #145044 is a reply to message #144977] |
Tue, 24 February 2004 17:54 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
Originally posted by: ab3001_2000_nospam.yahoo.com
"Emma Zhang" <hongling@ca.ibm.com> wrote in message
news:c1fu4c$lbe$1@eclipse.org...
> Exception in thread "main" java.lang.UnsatisfiedLinkError: no
> swt-win32-2135 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 com.ibm.commerce.test.test_eclipse.main(test_eclipse.java:10 3)
> ------------------------------------------------------------ ------
> Somebody told me that java application with GUI cannnot be run outside of
> eclipse, is that true?
>
> Thanks!
>
Hi Emma,
You just need to have the referenced swt dll in the Java path.
Use -Djava.library.path=%DLLPATH% where DLLPATH represents a path to the
folder where the DLL lives. SWT doesn't require Eclipse to work
HTH
Alec
|
|
|
Powered by
FUDForum. Page generated in 0.02661 seconds