Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

jdk9 can't run FX2D sketches even with runPropane() fix #20

Closed
monkstone opened this issue Mar 27, 2018 · 2 comments
Closed

jdk9 can't run FX2D sketches even with runPropane() fix #20

monkstone opened this issue Mar 27, 2018 · 2 comments

Comments

@monkstone
Copy link
Member

monkstone commented Mar 27, 2018

Environment

NB: jdk9.0.4 from oracle includes javafx jars.

Using custom propane (compiled with jdk9.0.4 targeting jdk8) modified to use public runPropane() instead of protected runSketch() test sketch see https://github.com/ruby-processing/propane-examples/blob/master/processing_app/basics/arrays/array_objects.rb.

Expected Behavior

Sketch runs fine with open-jdk8 (with javafx), and also with default renderer (and jdk9.0.4).

Actual Behavior

Exception in Application start method
java.lang.RuntimeException: Exception in Application start method
	at javafx.graphics/com.sun.javafx.application.LauncherImpl.launchApplication1(LauncherImpl.java:973)
	at javafx.graphics/com.sun.javafx.application.LauncherImpl.lambda$launchApplication$2(LauncherImpl.java:198)
	at java.base/java.lang.Thread.run(Thread.java:844)
Caused by: java.lang.NoSuchMethodError: com.sun.glass.ui.Screen.getRenderScale()F
	at processing.javafx.PSurfaceFX$PApplicationFX.start(PSurfaceFX.java:249)
	at javafx.graphics/com.sun.javafx.application.LauncherImpl.lambda$launchApplication1$9(LauncherImpl.java:919)
	at javafx.graphics/com.sun.javafx.application.PlatformImpl.lambda$runAndWait$11(PlatformImpl.java:449)
	at javafx.graphics/com.sun.javafx.application.PlatformImpl.lambda$runLater$9(PlatformImpl.java:418)
	at java.base/java.security.AccessController.doPrivileged(Native Method)
	at javafx.graphics/com.sun.javafx.application.PlatformImpl.lambda$runLater$10(PlatformImpl.java:417)
	at javafx.graphics/com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:96)
	at javafx.graphics/com.sun.glass.ui.gtk.GtkApplication._runLoop(Native Method)
	at javafx.graphics/com.sun.glass.ui.gtk.GtkApplication.lambda$runLoop$11(GtkApplication.java:277)
	... 1 more
@monkstone monkstone changed the title jdk9 FX2D sketches jdk9 FX2D can't sketches even with runPropane() fix Mar 27, 2018
@monkstone monkstone changed the title jdk9 FX2D can't sketches even with runPropane() fix jdk9 can't run FX2D sketches even with runPropane() fix Mar 27, 2018
@monkstone
Copy link
Member Author

monkstone commented Apr 1, 2018

@headius Tried to compile processing-core with jdk9 found PSurfaceFX.java refers to proprietary code com.sun.glass.ui.Screen which is probably why FX2D sketches wont run with jdk9, something for processing.org guys to fix.

@monkstone
Copy link
Member Author

Fixed by creating runPropane method in processing core source. We now compile propane as a single jar (bar opengl).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant