B4J Question Java11 / Exe / Jar won't start

Iatros

Member
Licensed User
Hi,
I downloaded the Java11 zip from b4x page. I created a standalone package.
I can't start the exe. First McAfee deleted it always, he said it's a virus. Now it's on the whitelist and won't be deleted.
I attached a screenshot of the taskmanager.
What can I do ?
Thank you !
 

Attachments

  • b4jTask.png
    b4jTask.png
    31.7 KB · Views: 142

Iatros

Member
Licensed User
This was the first protocol from run_debug.bat:

main._process_globals (java line: -1)
java.lang.NoClassDefFoundError: javafx/scene/web/WebView
at b4j/b4j.example.main._process_globals(Unknown Source)
at b4j/b4j.example.main.initializeProcessGlobals(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.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)
... 12 more


Then I included
#PackagerProperty: IncludedModules = javafx.web

I made it with the Project from B4JPackager11.zip and got that :eek:
I will try to find out. If you have any tips - your welcome :)

java.lang.reflect.InvocationTargetException
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.DynamicBuilder.build(Unknown Source)
at b4j/anywheresoftware.b4j.objects.LayoutBuilder.loadLayoutHeader(Unknown Source)
at b4j/anywheresoftware.b4j.objects.LayoutBuilder.loadLayoutHeader(Unknown Source)
at b4j/anywheresoftware.b4j.objects.LayoutBuilder.loadLayout(Unknown Source)
at b4j/anywheresoftware.b4j.objects.PaneWrapper.LoadLayout(Unknown Source)
at b4j/anywheresoftware.b4j.objects.TabPaneWrapper.LoadLayout(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.IllegalArgumentException: Illegal character in path at index 18: jrt:/b4j/Files/doc text_write_32.bmp
at java.base/java.net.URI.create(Unknown Source)
at java.base/jdk.internal.module.SystemModuleFinders$SystemModuleReader.find(Unknown Source)
at java.base/jdk.internal.loader.BuiltinClassLoader.findResource(Unknown Source)
at java.base/jdk.internal.loader.BuiltinClassLoader.findResource(Unknown Source)
at java.base/java.lang.Class.getResource(Unknown Source)
at b4j/anywheresoftware.b4a.objects.streams.File.GetUri(Unknown Source)
at b4j/anywheresoftware.b4j.objects.NodeWrapper.getImageUri(Unknown Source)
at b4j/anywheresoftware.b4j.objects.NodeWrapper.buildDrawable(Unknown Source)
at b4j/anywheresoftware.b4j.objects.NodeWrapper.build(Unknown Source)
at b4j/anywheresoftware.b4j.objects.ImageViewWrapper.build(Unknown Source)
... 27 more
Caused by: java.net.URISyntaxException: Illegal character in path at index 18: jrt:/b4j/Files/doc text_write_32.bmp
at java.base/java.net.URI$Parser.fail(Unknown Source)
at java.base/java.net.URI$Parser.checkChars(Unknown Source)
at java.base/java.net.URI$Parser.parseHierarchical(Unknown Source)
at java.base/java.net.URI$Parser.parse(Unknown Source)
at java.base/java.net.URI.<init>(Unknown Source)
... 37 more
main._appstart (java line: -1)
java.lang.RuntimeException: Object should first be initialized (ImageView).
at b4j/anywheresoftware.b4a.AbsObjectWrapper.getObject(Unknown Source)
at b4j/anywheresoftware.b4j.objects.NodeWrapper.innerInitialize(Unknown Source)
at b4j/anywheresoftware.b4j.objects.ImageViewWrapper.innerInitialize(Unknown Source)
at b4j/anywheresoftware.b4j.objects.LayoutBuilder.loadLayoutHeader(Unknown Source)
at b4j/anywheresoftware.b4j.objects.LayoutBuilder.loadLayoutHeader(Unknown Source)
at b4j/anywheresoftware.b4j.objects.LayoutBuilder.loadLayout(Unknown Source)
at b4j/anywheresoftware.b4j.objects.PaneWrapper.LoadLayout(Unknown Source)
at b4j/anywheresoftware.b4j.objects.TabPaneWrapper.LoadLayout(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)
 
Upvote 0

klaus

Expert
Licensed User
Longtime User
I have also problems with the McAfee antivirus and exe files generated with the Build Standalone Package method.
McAfee removes the exe file and puts it in quarantine.
I have the same problem with exe files compiled with Basic4PPC.
To be able to run them i use this workaround:
In McAfee click on Parameters and Real time analysis (Analyse en temps réel).

1603975381321.png


Then you can add files which are excluded form the analysis.

1603975588111.png
 
Upvote 0

agraham

Expert
Licensed User
Longtime User
Looks like you didn't read carefully - you've missed Special case 2

Apologies - on reading past the error list I see you found it :)
 
Upvote 0
Top