Skip to main content



      Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Help for running SWT projects under 3.1 !!!
Help for running SWT projects under 3.1 !!! [message #457816] Mon, 04 July 2005 14:31 Go to next message
Eclipse UserFriend
To run a project with SWT code in it under 3.0, it was enough to include
plugins\org.eclipse.swt.win32_3.0.1\ws\win32 jar
in the project build path
and run the program with JVM flag :
Djava.library.path=C:\dev\Eclipse3\eclipse\plugins\org.eclip se.swt.win32_3.0.1\os\win32\x86

(under Windows).



I try to do the same under Eclipse 3.1.....



included this jar (if not nothing compiles well):plugins\
org.eclipse.swt.win32.win32.x86_3.1.0.jar

try to use this JVM flag when run project:

Djava.library.path=C:\dev\eclipse3.1RC3\eclipse\plugins\org. eclipse.swt.win32.win32.x86_3.1.0



but exception says library not found at run time:

Exception in thread "main" java.lang.UnsatisfiedLinkError: no swt-win32-3138
in java.library.path



What is the right procedure now ???????



Thnaks for helping



Francois GRUYER
Re: Help for running SWT projects under 3.1 !!! [message #457817 is a reply to message #457816] Mon, 04 July 2005 14:45 Go to previous messageGo to next message
Eclipse UserFriend
In the menubar: Run/Debug as/SWT Application.

It can't be simpler than that.

Running the app outside Eclipse is another story though. For this you need
to download the Standalone SWT package and follow the instructions for
running your app with it. Mostly these follow what you've done in Eclipse
3.0 so far for running SWT.

If you need advanced info as to what is going on, the problem is, now the
SWT DLLs are inside the SWT feature jar. You can't put in -Djava.libray.path
JAR files that contain DLLs - only directories. How Eclipse handles that,
you'll ask? Well, Eclipse Platform Runtime extracts these DLLs in a temp
directory just at the start of Eclipse.

-I


"francois GRUYER" <gruyer.francois@wanadoo.fr> wrote in message
news:dabv9l$7a4$1@news.eclipse.org...
> To run a project with SWT code in it under 3.0, it was enough to include
> plugins\org.eclipse.swt.win32_3.0.1\ws\win32 jar
> in the project build path
> and run the program with JVM flag :
>
Djava.library.path=C:\dev\Eclipse3\eclipse\plugins\org.eclip se.swt.win32_3.0
..1\os\win32\x86
>
> (under Windows).
>
>
>
> I try to do the same under Eclipse 3.1.....
>
>
>
> included this jar (if not nothing compiles well):plugins\
> org.eclipse.swt.win32.win32.x86_3.1.0.jar
>
> try to use this JVM flag when run project:
>
>
Djava.library.path=C:\dev\eclipse3.1RC3\eclipse\plugins\org. eclipse.swt.win3
2.win32.x86_3.1.0
>
>
>
> but exception says library not found at run time:
>
> Exception in thread "main" java.lang.UnsatisfiedLinkError: no
swt-win32-3138
> in java.library.path
>
>
>
> What is the right procedure now ???????
>
>
>
> Thnaks for helping
>
>
>
> Francois GRUYER
>
>
>
>
Re: Help for running SWT projects under 3.1 !!! [message #457818 is a reply to message #457817] Mon, 04 July 2005 15:59 Go to previous message
Eclipse UserFriend
Ivan,

Many thanks. My problems came from the fact that for a while i used 3.1RC3.
and under RC3, there is NOT ANY "run as/SWT application" item (Run as Java
application" is the only choice left.
This option reappered under 3.1 final.....





"Ivan Markov" <ivan.markov@wizcom.bg> a
Previous Topic:Unhandled exceptions
Next Topic:[Off topic] Where to ask?
Goto Forum:
  


Current Time: Wed Jul 02 18:37:30 EDT 2025

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

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

Back to the top