Setting Maven dependencies when working with JavaFX 2.x

Maven dependency for the Java FX 2.2 in my project:

<dependency>
	<groupId>com.oracle</groupId>
	<artifactId>javafx</artifactId>
	<version>2.2</version>
	<scope>system</scope>			
	<systemPath>${java.home}/lib/jfxrt.jar</systemPath>			
</dependency>

 

My env variables are set as follows:

SET JAVA_HOME=C:\Program Files\Java\jdk1.7.0_21
SET PATH=%JAVA_HOME%\bin;%PATH%

 

I am not sure if this is the “correct” way – but it seems to be doing the trick for me.

Advertisements