[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
|
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
--
Achim Lörke
Eclipse-Stammtisch in the Braunschweig, Germany area:
http://www.bredex.de/de/news/events.html