# Java Home in Maven 3

Maven 3 built-in variable: ${java.home} points to JRE_HOME and not JDK.


If you would like to access the JDK home folder from maven, set JAVA_HOME on the OS level and use the environment variable: ${env.JAVA_HOME} to get access to it's value.



This trick together with JDK1.7u10+ simplified the build of LightFish by eliminating a custom variable pointing to a JavaFX installation. Now it is a plain: mvm clean install




See you at Java EE Workhops at MUC Airport (October 22nd-24th)!
