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

Update Travis CI build to use OpenJDK 11 #32

Closed
wants to merge 6 commits into from
Closed

Update Travis CI build to use OpenJDK 11 #32

wants to merge 6 commits into from

Conversation

joschi
Copy link

@joschi joschi commented Dec 29, 2018

Currently, the builds on Travis CI are failing because the build environment is trying to use Java 8 to compile Everest (which requires Java 11 according to the POM).

This PR updates the Travis CI build configuration to:

@RohitAwate
Copy link
Owner

Thanks Jochen! I had been postponing this for a while. ;)

I'll merge this in as it is, but I was wondering if you could help me out with one more thing.
No pressure, of course.

I can't figure out why the build doesn't run with the Exec Maven Plugin. I've been having the exact same issue without Maven Wrapper. Due to this, I need to build Everest with the JavaFX SDK. I've talked about it here.

This is the stack trace I get:

java.lang.ExceptionInInitializerError
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
    at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke (Method.java:566)
    at org.codehaus.mojo.exec.ExecJavaMojo$1.run (ExecJavaMojo.java:297)
    at java.lang.Thread.run (Thread.java:834)
Caused by: java.lang.RuntimeException: Internal graphics not initialized yet
    at com.sun.glass.ui.Screen.getScreens (Screen.java:70)
    at com.sun.javafx.tk.quantum.QuantumToolkit.getScreens (QuantumToolkit.java:709)
    at com.sun.javafx.tk.quantum.QuantumToolkit.getMaxRenderScale (QuantumToolkit.java:736)
    at com.sun.javafx.tk.quantum.QuantumToolkit.loadImage (QuantumToolkit.java:745)
    at javafx.scene.image.Image.loadImage (Image.java:1052)
    at javafx.scene.image.Image.initialize (Image.java:802)
    at javafx.scene.image.Image.<init> (Image.java:618)
    at com.rohitawate.everest.Main.<clinit> (Main.java:32)
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
    at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke (Method.java:566)
    at org.codehaus.mojo.exec.ExecJavaMojo$1.run (ExecJavaMojo.java:297)
    at java.lang.Thread.run (Thread.java:834)

Thanks again! :)

JavaFX components such as Image cannot be used until the application has been initialized.

Refs https://bugs.openjdk.java.net/browse/JDK-8093075
@joschi
Copy link
Author

joschi commented Feb 2, 2019

@RohitAwate See the latest commit, which fixed the error when running ./mvnw exec:java.

@joschi
Copy link
Author

joschi commented Jan 6, 2020

See https://github.com/warmuuh/milkman for a more full-featured Java-based alternative for Postman.

@joschi joschi closed this Jan 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants