- Aug 22, 2020
- 88
- 227
Using this approach I was able to successfully build using OpenJDK 11. However, the resulting file will not actually run with OpenJDK 11. Quoth cmd:The easiest approach for getting it to work with later OpenJDK versions is to let Maven do the work for you. Here's a pom.xml that will make it much easier to build with OpenJDK 11:You must be registered to see the links. It'll pull down all necessary dependencies automatically, so you don't have to worry about manually fiddling with OpenJFX installations.
I believe that pom.xml will work through at least OpenJDK 14 (just change the target versions accordingly if you decide to use that version). The Nashorn JavaScript Engine was removed from some later JDK versions, which necessitates some minor modifications.
I've never used Netbeans, but I imagine it has some degree of Maven integration included. If not, IntelliJ definitely does.
Trying to run it using 1.8 just says it can't because it was compiled with a newer version.Error: Could not find or load main class com.lilithsthrone.main.Main
Caused by: java.lang.NoClassDefFoundError: javafx/application/Application
Having acquired the 1.8 JDK from the other guy, I'm going to try compiling with that instead.
Boy, I fucking hate this.