I have been trying for days now to figure out how to run a JavaFX 11 desktop application I made (using Gradle) on my Raspberry Pi but to no avail.
I have looked at many guides, but most of them use Java 8, or maven, or something else. At this point, I have no idea where to start.
What I have Tried Before
- Install
bellsoft openjdk11 - Download
openjfx-11sdk and unzip - clone my gradle javafx 11 project from github
- edit build.gradle to say
sdk=/opt/armv6hf-sdk - chmod +x ./gradlew
- ./gradlew run
There error I am getting is could not find :javafx.base:. Searched in the following locations: -file:/opt/armv6hf/lib/javafx.base.jar
What am I doing wrong?
Do I clone the GitHub repo to my Pi? Do I build it on my Windows machine and then move it over?
Update
It now builds, but I am getting an error about Unable to open DISPLAY I am 90% sure that this is because I am running raspbian lite (no desktop). How can I run my application without running a full desktop enviornment? Is that even possible?