B4J Question Launch4J - error

Discussion in 'B4J Questions' started by Lego Jérôme, Nov 18, 2018.

  1. Lego Jérôme

    Lego Jérôme Member Licensed User

    hi,
    When i build warpper with Launch4J, it's create my .exe, but when i try to run it with Launch4J, there is an error, as indicated in the log:

    would anyone have an idea where this problem would come from?

    Code:
    Executing: D:\Logiciel\B4J\Mes projets\Ti logiciel\Objects\Ti programme.exe
    main._process_globals (java line: 
    160)
    java.lang.NoClassDefFoundError: javafx/scene/
    control/Dialog
        at Premiere.version.main._process_globals(main.java:
    160)
        at Premiere.version.main.initializeProcessGlobals(main.java:
    148)
        at Premiere.version.main.start(main.java:
    35)
        at com.sun.javafx.application.LauncherImpl$
    5.run(Unknown Source)
        at com.sun.javafx.application.PlatformImpl$
    5.run(Unknown Source)
        at com.sun.javafx.application.PlatformImpl$
    4$1.run(Unknown Source)
        at com.sun.javafx.application.PlatformImpl$
    4$1.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at com.sun.javafx.application.PlatformImpl$
    4.run(Unknown Source)
        at com.sun.glass.ui.InvokeLaterDispatcher$
    Future.run(Unknown Source)
        at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
        at com.sun.glass.ui.win.WinApplication.access$
    100(Unknown Source)
        at com.sun.glass.ui.win.WinApplication$
    3$1.run(Unknown Source)
        at java.lang.Thread.run(Unknown Source)
    Caused by: java.lang.ClassNotFoundException: javafx.scene.control.Dialog
        at java.net.URLClassLoader$
    1.run(Unknown Source)
        at java.net.URLClassLoader$
    1.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        ... 
    14 more
     
  2. Erel

    Erel Administrator Staff Member Licensed User

    It means that the default Java version is too low. It should be 8u40+.

    A better option is to use the packager that creates an installation file with an embedded Java runtime.
     
  3. Lego Jérôme

    Lego Jérôme Member Licensed User

    thank you, erel, again you're right!
    I made the update java, and it works now.
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice