Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Launching a standalone swt application from within eclipse
Launching a standalone swt application from within eclipse [message #466132] Tue, 03 January 2006 15:39 Go to next message
Steve Jones is currently offline Steve JonesFriend
Messages: 95
Registered: July 2009
Member
Hi,

I have a small standalone SWT application that I'd like to embed within
one of my plugins and be able to it launch it as required.

The app needs to run in a separate VM.

To launch the VM 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 using:

-Djava.library.path=<path to swt libraries in eclipse>

The problem is that the libraries have different names depending on the
host platform.

How will I know what to look for and where they reside?

Are there any core functions within the workbench or OSGI
that can resolve the location of the libraries for me?

Thanks, Steve.
Re: Launching a standalone swt application from within eclipse [message #466209 is a reply to message #466132] Wed, 04 January 2006 22:05 Go to previous message
Veronika Irvine is currently offline Veronika IrvineFriend
Messages: 1272
Registered: July 2009
Senior Member
Not only do the libraries have different names for different platforms but
in 3.1 and beyond, the libraries are in a jar and need to be extracted.
Eclipse extracts the libraries but the location in which they are extracted
is not fixed.

Maybe take a look at :
LaunchConfigurationDelegate.addReferencedProjects() in
org.eclipse.debug.core

You basically need to do what "Run As ... SWT Application" does.

"Steve Jones" <joness@istech.demon.co.uk> wrote in message
news:pan.2006.01.03.15.38.59.241417@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 it launch it as required.
>
> The app needs to run in a separate VM.
>
> To launch the VM 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 using:
>
> -Djava.library.path=<path to swt libraries in eclipse>
>
> The problem is that the libraries have different names depending on the
> host platform.
>
> How will I know what to look for and where they reside?
>
> Are there any core functions within the workbench or OSGI
> that can resolve the location of the libraries for me?
>
> Thanks, Steve.
>
Previous Topic:AWT component into SWT image
Next Topic:Scrollable views
Goto Forum:
  


Current Time: Fri Mar 29 06:02:09 GMT 2024

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

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

Back to the top