javafx-gradle-plugin icon indicating copy to clipboard operation
javafx-gradle-plugin copied to clipboard

Couldn't find Ant-JavaFX library

Open wackyvert opened this issue 4 years ago • 4 comments

I know there's already been an issure created for this exact problem, but setting JAVA_HOME hasn't fixed any of my problens. I get that exact error, I have OpenJDK installed.

wackyvert avatar Dec 29 '19 16:12 wackyvert

You need to have OpenJFX installed too, having just OpenJDK installed isn't everything that is required,

FibreFoX avatar Dec 29 '19 17:12 FibreFoX

Could you explain how to do that? I've done everything it says on https://openjfx.io (add path variable for jfx, i also have JRE_HOME and JAVA_HOME set correctly)

wackyvert avatar Dec 29 '19 19:12 wackyvert

Can you give me a bit more details to your development environment? Which gradle-version are you using, which JDK/(Open)JFX are you using?

Just a reminder, this gradle-plugin is not yet working with JDKs beyond JDK 8, which changes 2020.

FibreFoX avatar Dec 29 '19 20:12 FibreFoX

same problem here.

I found issue mention $JAVA_HOME/lib/ant-javafx.jar:

but I didn't see the file what I downloaded from: http://gluonhq.com/download/javafx-11-0-2-sdk-linux/

cd javafx-sdk-11.0.2/lib
ls *.jar

and I got:

javafx.base.jar  javafx.controls.jar  javafx.fxml.jar  javafx.graphics.jar  javafx.media.jar  javafx.swing.jar  javafx-swt.jar  javafx.web.jar

FlySkyPie avatar Feb 26 '20 15:02 FlySkyPie