Menu

JavaFX

mithryn
Because of an issue with JavaFX and licensing, there isn't a publicly available repository to download and install the JavaFX dependency.

Not to worry though! There is a way around this, and if you have already installed JavaFX and set your JAVAFX_HOME env variable, you shouldn't have any problems.

Linux:

mvn install:install-file -Dfile="$JAVAFX_HOME/rt/lib/jfxrt.jar" -DgroupId=com.oracle.javafx -DartifactId=javafx -Dversion=2.1 -Dpackaging=jar

Windows:

mvn install:install-file -Dfile="%JAVAFX_HOME%/rt/lib/jfxrt.jar" -DgroupId=com.oracle.javafx -DartifactId=javafx -Dversion=2.1 -Dpackaging=jar

this will install the javafxrt.jar into your .m2 directory, provided your $JAVAFX_HOME variable is pointing to the correct location.