I can't create a .exe from a .jar with a webview.
I have a new pc, win10
I've installed b4j following instructions
I've created demo application, a web browser: url, visit, webview
I compile, it works.
I try to execute demo.jar, it doesn't start (I have no java, I've just) unzipped OpenJDK 11 + OpenJFX 11 to c:/java)
I load B4JPackager11 and execute it.
No errors
I run demo.exe, doesn't start
I run run_debug.bat : (pippo is demo)
C:\Users\...\2020b4j\pack\B4JPackager11\Objects\temp\build\bin>java.exe @release_java_modules.txt -m b4j/pippo.xxx.com.main
main._process_globals (java line: -1)
java.lang.NoClassDefFoundError: javafx/scene/web/WebView
at b4j/anywheresoftware.b4j.objects.WebViewWrapper.<clinit>(Unknown Source)
at b4j/pippo.xxx.com.main._process_globals(Unknown Source)
at b4j/pippo.xxx.com.main.initializeProcessGlobals(Unknown Source)
at b4j/pippo.xxx.com.main.start(Unknown Source)
at javafx.graphics/com.sun.javafx.application.LauncherImpl.lambda$launchApplication1$9(Unknown Source)
at javafx.graphics/com.sun.javafx.application.PlatformImpl.lambda$runAndWait$12(Unknown Source)
at javafx.graphics/com.sun.javafx.application.PlatformImpl.lambda$runLater$10(Unknown Source)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at javafx.graphics/com.sun.javafx.application.PlatformImpl.lambda$runLater$11(Unknown Source)
at javafx.graphics/com.sun.glass.ui.InvokeLaterDispatcher$Future.run(Unknown Source)
at javafx.graphics/com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
at javafx.graphics/com.sun.glass.ui.win.WinApplication.lambda$runLoop$3(Unknown Source)
at java.base/java.lang.Thread.run(Unknown Source)
Caused by: java.lang.ClassNotFoundException: javafx.scene.web.WebView
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(Unknown Source)
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(Unknown Source)
at java.base/java.lang.ClassLoader.loadClass(Unknown Source)
... 13 more
What I've missed ?
I've written another demo with a simple button and all works fine.
Thank you in advance
ps: it's great to produce an .exe !
I have a new pc, win10
I've installed b4j following instructions
I've created demo application, a web browser: url, visit, webview
I compile, it works.
I try to execute demo.jar, it doesn't start (I have no java, I've just) unzipped OpenJDK 11 + OpenJFX 11 to c:/java)
I load B4JPackager11 and execute it.
No errors
I run demo.exe, doesn't start
I run run_debug.bat : (pippo is demo)
C:\Users\...\2020b4j\pack\B4JPackager11\Objects\temp\build\bin>java.exe @release_java_modules.txt -m b4j/pippo.xxx.com.main
main._process_globals (java line: -1)
java.lang.NoClassDefFoundError: javafx/scene/web/WebView
at b4j/anywheresoftware.b4j.objects.WebViewWrapper.<clinit>(Unknown Source)
at b4j/pippo.xxx.com.main._process_globals(Unknown Source)
at b4j/pippo.xxx.com.main.initializeProcessGlobals(Unknown Source)
at b4j/pippo.xxx.com.main.start(Unknown Source)
at javafx.graphics/com.sun.javafx.application.LauncherImpl.lambda$launchApplication1$9(Unknown Source)
at javafx.graphics/com.sun.javafx.application.PlatformImpl.lambda$runAndWait$12(Unknown Source)
at javafx.graphics/com.sun.javafx.application.PlatformImpl.lambda$runLater$10(Unknown Source)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at javafx.graphics/com.sun.javafx.application.PlatformImpl.lambda$runLater$11(Unknown Source)
at javafx.graphics/com.sun.glass.ui.InvokeLaterDispatcher$Future.run(Unknown Source)
at javafx.graphics/com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
at javafx.graphics/com.sun.glass.ui.win.WinApplication.lambda$runLoop$3(Unknown Source)
at java.base/java.lang.Thread.run(Unknown Source)
Caused by: java.lang.ClassNotFoundException: javafx.scene.web.WebView
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(Unknown Source)
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(Unknown Source)
at java.base/java.lang.ClassLoader.loadClass(Unknown Source)
... 13 more
What I've missed ?
I've written another demo with a simple button and all works fine.
Thank you in advance
ps: it's great to produce an .exe !
Last edited: