In my company, we check our Eclipse *.launch
files into source control. How can we reference tools.jar
(which is part of the JDK installation) from a launch file regardless of where the user installed his JDK? For example, if one user installed his JDK in /opt/java
and another in c:\Program Files\Java
, how can we write a launch file that works for both?
Note: I am happy to use a system variable such as $JAVA_HOME
, but requiring the user to define a variable in Eclipse kind of defeats the purpose.