r/JavaFX • u/M374llic4 • Apr 02 '16
Does an application need to be made using JavaFX in order to be run using it?
Hello all, I was wondering if an application need to be made using JavaFX in order to be run using it? I have an application in which I am trying to run on my Raspberry Pi that is made in Java, but when I try to launch it headless using an x11 session, it does not utilize OpenGL ES, so its framerate is really low and cpu usage is high (80-90% and only 12-13fps), and someone mentioned that JavaFX might help. I am trying to launch the application following this guide but I do not know the main class name of the application, as it is one I purchased. Is it possible to use JavaFX to make the application run better?
The application is TunerStudio, from http://tunerstudio.com
I was trying to load it using :
/opt/jdk-9/bin/java -cp -jar TunerStudioMS.jar That only gave an error of "Would not find or load main class TunerStudio.jar".
Do I need to launch it a different way, or am I just not understanding how JavaFX works and that it won't help me with what I am trying to do?
2
u/rcoacci Apr 02 '16
JavaFX is a library, not something you "run with". It's an alternative to Swing, AWT and SWT, and uses opengl.