SpeedGuid crashes unexpectedly

vliwei3
vliwei3 Newcomer
edited May 8 in Elektron

My jdk version:

java version "24.0.1" 2025-04-15
Java(TM) SE Runtime Environment (build 24.0.1+9-30)
Java HotSpot(TM) 64-Bit Server VM (build 24.0.1+9-30, mixed mode, sharing)

when I input “java -jar SpeedGuide.jar”
Error: Could not find or load main class com.lseg.ema.example.gui.SpeedGuide
Caused by: java.lang.NoClassDefFoundError: javafx/application/Application

Tagged:

Best Answer

Answers

  • Jirapongse
    Jirapongse ✭✭✭✭✭

    @vliwei3

    Thank you for reaching out to us.

    I checked the source code page on GitHub.

    Note

    : Because the package was built using JDK 1.8. which conveniently packages the JavaFx package, user must ensure they install Java 8 runtime.

  • Hi @Jirapongse, we have pretty much the same problem, but it seems like the root of the crash lies in the Java 8 runtime itself

    $ java -jar .\SpeedGuide.jar
    Error: JavaFX has been removed from JDK 8.
    Visit https://www.oracle.com/javase/javafx for more information.
    Error: Could not find or load main class com.lseg.ema.example.gui.SpeedGuide
    

    Any suggestions?

    Thanks in advance.

  • Jirapongse
    Jirapongse ✭✭✭✭✭
    edited May 13

    @sergei.nazarov

    The SpeedGuide uses the JavaFX.

    I checked and found that the JavaFX may be removed from the new versions of JDK 1.8.

    I tested it with the JDK 1.8.0_333 and it can run the SpeedGuide properly.

  • vliwei3
    vliwei3 Newcomer

    The problem still exists.


    java version "1.8.0_451"
    Java(TM) SE Runtime Environment (build 1.8.0_451-b10)
    Java HotSpot(TM) 64-Bit Server VM (build 25.451-b10, mixed mode)

    Error: JavaFX has been removed from JDK 8.
    Visit https://www.oracle.com/javase/javafx for more information.
    Error: Could not find or load main class com.lseg.ema.example.gui.SpeedGuide