[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform.rcp] Re: Starting RCP app with specified vm w/o hard-coded path

This would rely on using a shell script to invoke the launcher with -vm on the command line instead of having the -vm in the launcher.ini file.

The launcher currently does not do environment variable substitution in either the .ini file, or in the .ee files.

As for required entries in the .ee file, it is really either:
ee.vm.library & ee.library.path for JNI launching
or
ee.executable & ee.executable.console for spawning the vm in a separate process. (The ee.executable.console is only need for -console, -consoleLog, -debug).


-Andrew

Achim Lörke wrote:
On Mon, 06 Oct 2008 10:28:27 +0200, Daniel Krügler <dsp@xxxxxxx>
wrote:

Hello,

I would like to control the startup of my RCP app to
use a specified Java vm, therefore the -vm  runtime option
seems appropriate. Problem is: A priori it is unknown,
*which* absolute or relative path the wanted java vm will
have (because that depends on the actual installation),
but it seems that the -vm parameter does not accept a
specified environment variable (which could be set by the
installation) - is that assertion correct?


What platform are you working on?


On Linux/Unix/OS X the environment variable would be substituted by
the shell, i.e. this should work right out of the box.

On MS Windows you can specify environment variables in shortcuts, i.e.
for entries in the Programs entry on the Start button, or using
cmd.exe. You have to use the %variable_name% notation for this to
work. Example: C:\devapps\eclipse\eclipse341\eclipse.exe -configuration
"%appdata%\eclipse34"


For other system your guess is as good as mine.


Achim