I have attempted to follow this solution, Why is JavaFX is not included in OpenJDK 8 on Ubuntu Wily (15.10)?, but is is unfortunately outdated. I did find the package openjfx I think I need here: https://launchpad.net/~tj/+archive/ubuntu/java-for-14.04
The package installs fine, under /usr/lib/jvm/java-8-openjdk-amd64/jre/lib and I can find jfxswt.jar and jfxrt.jar under the ext folder. The problem is that the java compiler does not know that they are here. I've tried explicitly pointing to their locations through the javac -cp and declaring the classpath in .bashrc. In both situations I declared them as such: ".:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/jfxswt.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/ext/jfxrt.jar"
Upon compilation: javac -cp ".:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/jfxswt.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/ext/jfxrt.jar" EventsDemo.java
Terminal Output:
EventsDemo.java:1: error: package javafx.application does not exist import javafx.application.Application;
So in short, I think I have done something wrong with the classpath and I would like to know how to get my compiler to recognize JavaFX. I hope I have provided enough information. I would prefer a solution not requiring the use of an IDE as I am trying to understand how to compiler handles these things. Thanks!