Launching a standalone swt application from within eclipse [message #205889] |
Thu, 22 December 2005 19:15  |
Eclipse User |
|
|
|
Originally posted by: joness.istech.demon.co.uk
Hi,
I have a small standalone SWT application that I'd like to embed within
one of my plugins and be able to launch it as required.
The app needs to be in a separate VM. I intend to kick off the VM using
Runtime.getRuntime().exec(...).
I need to be able to figure out where the the SWT libraries are within
eclipse so I can pass them to the new VM.
Also the libraries have different names depending on the host platform so
how will I know what to look for?
Are there any core functions within the workbench that can resolve these
things?
Thanks, Steve.
|
|
|
Re: Launching a standalone swt application from within eclipse [message #205927 is a reply to message #205889] |
Fri, 23 December 2005 04:58  |
Eclipse User |
|
|
|
If you are using Eclipse 3.1.1 or above, then org.eclipse.swt.win32.win32.x86_<version> is SWT win32 archive. I dont know about other platforms. In the win32 SWT archive you will also find a SWT DLL swt-win32-3139.dll which needs to be linked dynamically. ( java -Djava.library.path <fullpath to swt-win32-3139.dll> )
> Also the libraries have different names depending on
> the host platform so how will I know what to look for?
I dont think there are any workbench utilities for what you are looking !
In order to run your SWT app in a seperate VM with Runtime.getRuntime().exec(..), there may be some issues..check the thread http://www.javalobby.org/java/forums/t53333.html for some help.
Thanks
~Venkat
|
|
|
Powered by
FUDForum. Page generated in 0.02984 seconds