[Java] How to add a "org.openjfx:javafx-base:11" dependency in build.gradle?
There's a specific class I want to use: javafx.util.Pair
. That means I need to add a dependency to the Maven org.openjfx:javafx-base:11
package that contains the class ( https://search.maven.org/artifact/org.openjfx/javafx-base/11/jar ), so that I can add a import javafx.util.Pair
statement to my Main.java
file. But I'm relatively new to Java and am having trouble figuring out how to set this up in OneCompiler.
I tried searching for other OneCompiler examples that add dependencies on a javafx
package, but I couldn't find any that compiled. The OpenJFX documentation is also pretty confusing -- to me, anyway, since I'm new to this stuff.
Here's what I've tried thus far: https://onecompiler.com/java/3xyc9e9mu
Any help would be greatly appreciated... thanks in advance!