Login  Register

Re: Jogl and JavaFX

Posted by gouessej on Apr 03, 2020; 5:24pm
URL: https://forum.jogamp.org/Jogl-and-JavaFX-tp4040468p4040507.html

Ok I've just created a tiny non modular project with JOGL, OpenJDK 14 and OpenJFX 14 without Maven as JOGL 2.4.0 isn't on our Maven development repository (I guess?). I've succeeded in running it. I'll move to the very latest RC of JOGL 2.4.0. For the moment, I get this warning:
(java:16048): Gdk-WARNING **: 19:19:25.453: XSetErrorHandler() called with a GDK error trap pushed. Don't do that.

I hope that it's not important.

For others who try to compile in command line, take care of the order of the options, the main class must be the very last thing you mention when you run:
javac --module-path $PATH_TO_FX --add-modules javafx.controls src/main/java/org/jogamp/joglojfx/App.java -d target/classes -cp jogamp-fat.jar
// replace : by ; under Microsoft Windows
java --module-path $PATH_TO_FX --add-modules javafx.controls -cp target/classes:jogamp-fat.jar org.jogamp.joglojfx.App

P.S: Sweck, I'll try to provide a simple example with NewtCanvasJFX, GLEventListener and an Animator (based on Sven's unit test). I really need to have a rest right now. I'll be back soon.
Julien Gouesse | Personal blog | Website