Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to use environment variables in eclipse.ini? [duplicate]

Tags:

java

eclipse

Is it possible to use environment variables like %JAVA_HOME% within eclipse.ini?

I'd like to include the following without having to hardcode the absolute path to jdk:

-vm
%JAVA_HOME%\bin\javaw.exe

But that's not working and eclipse complains about missing jdk.

By the way: cmd echo %JAVA_HOME% shows the correct path.

like image 678
membersound Avatar asked Jul 19 '16 10:07

membersound


1 Answers

It is not possible. There is already a bug opened for this.

Also see this question: eclipse.ini variables

like image 121
saurav Avatar answered Oct 23 '22 13:10

saurav