Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Launching a standalone swt application from within eclipse
Launching a standalone swt application from within eclipse [message #205889] Thu, 22 December 2005 19:15 Go to next message
Eclipse UserFriend
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 Go to previous message
venkataramana m is currently offline venkataramana mFriend
Messages: 86
Registered: July 2009
Member
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
Previous Topic:Problems creating gefgenmodel
Next Topic:EditDomain class
Goto Forum:
  


Current Time: Wed Feb 05 18:00:27 GMT 2025

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

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

Back to the top