Update
I know that if an answer does't come, is because a question is very similar to others.
So I've searched more and found:
-
https://www.b4x.com/android/forum/t...-way-to-distribute-standalone-ui-apps.117880/
tips 2 and 7. (
NO !!! DON'T DO IT: see tip 6 and solution at the bottom of this thread).
ERROR:
#PackagerProperty: IncludedModules = javafx.web
#PackagerProperty: IncludedModules = jdk.crypto.ec
Now if I add the second line the .exe si produced, but if I run the app the window opens, and immediatly closes itself.
Running run_debug.bat
b4xmainpage.innerInitialize (java line: -1)
java.lang.RuntimeException: java.lang.NoClassDefFoundError: javafx/scene/web/WebView
at b4j/anywheresoftware.b4a.BA.raiseEvent2(Unknown Source)
at b4j/b4j.example.b4xmainpage.innerInitialize(Unknown Source)
at b4j/b4j.example.b4xmainpage._initialize(Unknown Source)
at b4j/b4j.example.b4xpagesmanager._initialize(Unknown Source)
at b4j/b4j.example.main._appstart(Unknown Source)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.base/java.lang.reflect.Method.invoke(Unknown Source)
at b4j/anywheresoftware.b4a.BA.raiseEvent2(Unknown Source)
at b4j/anywheresoftware.b4a.BA.raiseEvent(Unknown Source)
at b4j/b4j.example.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.NoClassDefFoundError: javafx/scene/web/WebView
at b4j/anywheresoftware.b4j.objects.WebViewWrapper.<clinit>(Unknown Source)
at b4j/b4j.example.b4xmainpage._class_globals(Unknown Source)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.base/java.lang.reflect.Method.invoke(Unknown Source)
... 21 more
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)
... 27 more
So I will search for NoClassDefFoundError: javafx/scene/web/WebView because it is installed on my pc. I'll report you all my errors.
UPDATE:
If I use only #PackagerProperty: IncludedModules = javafx.web, the app doesn't self close, no errors, but I can't see the page.
If I use also #PackagerProperty: IncludedModules = jdk.crypto.ec the app do self close after start, and the error is ... webview missing: NoClassDefFoundError: javafx/scene/web/WebView