I've been trying to create a runConfiguration within Eclipse for a gradle project I'm working on. When I tried saving it as a local file which created a .launch file, it has a parameter
<stringAttribute key="java_home" value="/Library/Java/JavaVirtualMachines/java-sdk/Contents/Home"/>
Is it possible to have value as ${JAVA_HOME} instead of using my local directory?
Edit: Adding the full launch config file.
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<launchConfiguration type="org.eclipse.buildship.core.launch.runconfiguration">
<listAttribute key="arguments"/>
<booleanAttribute key="build_scans_enabled" value="false"/>
<stringAttribute key="gradle_distribution" value="GRADLE_DISTRIBUTION(LOCAL_INSTALLATION(/opt/gradle/gradle-7.3.3))"/>
<stringAttribute key="gradle_user_home" value="/Users/harishankarv/.gradle"/>
<stringAttribute key="java_home" value="/Library/Java/JavaVirtualMachines/java-sdk/Contents/Home"/>
<listAttribute key="jvm_arguments"/>
<booleanAttribute key="offline_mode" value="false"/>
<booleanAttribute key="org.eclipse.debug.ui.ATTR_LAUNCH_IN_BACKGROUND" value="false"/>
<booleanAttribute key="override_workspace_settings" value="false"/>
<booleanAttribute key="show_console_view" value="true"/>
<booleanAttribute key="show_execution_view" value="true"/>
<listAttribute key="tasks">
<listEntry value="installJars"/>
</listAttribute>
<stringAttribute key="working_dir" value="${workspace_loc:/project_name}"/>
</launchConfiguration>