Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » environment variables for eclipse.ini
environment variables for eclipse.ini [message #485042] Thu, 10 September 2009 11:04 Go to next message
Lars Fischer is currently offline Lars FischerFriend
Messages: 105
Registered: July 2009
Senior Member
Hello,

I would like to use windows environment variables values as parameters
in the eclipse.ini. E.g. JAVA_HOME with the path to the JDK for "-vm
%JAVA_HOME%\bin\javaw.exe"

I tried the above, but it does not work. Is there an other way how I can
solve this?

regards,
Lars
Re: environment variables for eclipse.ini [message #486248 is a reply to message #485042] Wed, 16 September 2009 21:15 Go to previous messageGo to next message
David Williams is currently offline David WilliamsFriend
Messages: 176
Registered: July 2009
Senior Member
Lars Fischer wrote:
> I would like to use windows environment variables values as parameters
> in the eclipse.ini. E.g. JAVA_HOME with the path to the JDK for "-vm
> %JAVA_HOME%\bin\javaw.exe"
>
> I tried the above, but it does not work. Is there an other way how I can
> solve this?
>

I don't believe so, since I couldn't find it documented anywhere, and
tried a few tests myself.

But just in case you are asking "how do I get the VM at JAVA_HOME used,
then that part should be automatically found by the launcher.
Re: environment variables for eclipse.ini [message #486377 is a reply to message #486248] Thu, 17 September 2009 13:30 Go to previous messageGo to next message
Lars Fischer is currently offline Lars FischerFriend
Messages: 105
Registered: July 2009
Senior Member
Hello David,

thank you for your answer.

David Williams wrote:
> Lars Fischer wrote:
>> I would like to use windows environment variables values as parameters
>> in the eclipse.ini. E.g. JAVA_HOME with the path to the JDK for "-vm
>> %JAVA_HOME%\bin\javaw.exe"
>>
>> I tried the above, but it does not work. Is there an other way how I
>> can solve this?
>>
>
> I don't believe so, since I couldn't find it documented anywhere, and
> tried a few tests myself.
>
> But just in case you are asking "how do I get the VM at JAVA_HOME used,
> then that part should be automatically found by the launcher.

JAVA_HOME is only one exmple for a configuration parameter.

I would like to define multiple settings which can differ on several
computers and prepare ONE eclipse installation deployed to this
computers to use the environment settings on startup. But it looks like
this is not possible.

Regards,
Lars
Re: environment variables for eclipse.ini [message #486427 is a reply to message #486377] Thu, 17 September 2009 15:15 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: wegener.cboenospam.com

You could write a shell script/batch file to get this to work. The vm
parameter can be specified on the command line. Create a script file which
calls eclipse with a command line parameter of -vm
"%JAVA_HOME%\bin\javaw.exe". Then use the script file to run eclipse.


"Lars Fischer" <lfischer@fast-mail.org> wrote in message
news:h8tdla$trn$1@build.eclipse.org...
> Hello David,
>
> thank you for your answer.
>
> David Williams wrote:
> > Lars Fischer wrote:
> >> I would like to use windows environment variables values as parameters
> >> in the eclipse.ini. E.g. JAVA_HOME with the path to the JDK for "-vm
> >> %JAVA_HOME%\bin\javaw.exe"
> >>
> >> I tried the above, but it does not work. Is there an other way how I
> >> can solve this?
> >>
> >
> > I don't believe so, since I couldn't find it documented anywhere, and
> > tried a few tests myself.
> >
> > But just in case you are asking "how do I get the VM at JAVA_HOME used,
> > then that part should be automatically found by the launcher.
>
> JAVA_HOME is only one exmple for a configuration parameter.
>
> I would like to define multiple settings which can differ on several
> computers and prepare ONE eclipse installation deployed to this
> computers to use the environment settings on startup. But it looks like
> this is not possible.
>
> Regards,
> Lars
>
Re: environment variables for eclipse.ini [message #487143 is a reply to message #486427] Tue, 22 September 2009 07:10 Go to previous message
Lars Fischer is currently offline Lars FischerFriend
Messages: 105
Registered: July 2009
Senior Member
Dave Wegener schrieb:
> You could write a shell script/batch file to get this to work. The vm
> parameter can be specified on the command line. Create a script file which
> calls eclipse with a command line parameter of -vm
> "%JAVA_HOME%\bin\javaw.exe". Then use the script file to run eclipse.

Thank you for the hint. I use it now this way.

Regards,
Lars
Previous Topic:Reading the Manifest.mf file
Next Topic:Reading <enter> in console
Goto Forum:
  


Current Time: Fri Apr 19 16:39:23 GMT 2024

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

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

Back to the top