B4J Question B4J Build Standalone Package problem

Fr Simon Rundell

Member
Licensed User
Longtime User
I have a project running fine within the IDE, whether in Debug or Release mode but after building a standalone package, running the resulting .exe opens Microsoft Edge!!!

Has anyone else encountered this yet or have I (more likely) configured something stupid?
 

Fr Simon Rundell

Member
Licensed User
Longtime User
D:\Dropbox\Development\FTP\B4J\Objects\temp\build\bin>java.exe @release_java_modules.txt -m b4j/b4j.example.main
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.loadLayoutHeader(Unknown Source)
at b4j/anywheresoftware.b4j.objects.LayoutBuilder.loadLayout(Unknown Source)
at b4j/anywheresoftware.b4j.objects.PaneWrapper.LoadLayout(Unknown Source)
at b4j/anywheresoftware.b4a.objects.B4XViewWrapper.LoadLayout(Unknown Source)
at b4j/b4j.example.b4xmainpage._b4xpage_created(Unknown Source)
at b4j/b4j.example.b4xmainpage.callSub(Unknown Source)
at b4j/anywheresoftware.b4a.keywords.Common.CallSub4(Unknown Source)
at b4j/anywheresoftware.b4a.keywords.Common.CallSubNew2(Unknown Source)
at b4j/b4j.example.b4xpagesmanager._createpageifneeded(Unknown Source)
at b4j/b4j.example.b4xpagesmanager._showpage(Unknown Source)
at b4j/b4j.example.b4xpagesmanager._addpage(Unknown Source)
at b4j/b4j.example.b4xpagesmanager._addpageandcreate(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(Unknown Source)
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 23: jrt:/b4j/Files/Web-Logo Black.png
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)
... 37 more
Caused by: java.net.URISyntaxException: Illegal character in path at index 23: jrt:/b4j/Files/Web-Logo Black.png
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)
... 47 more
b4xpagesmanager._createpageifneeded (java line: -1)
java.lang.RuntimeException: java.lang.RuntimeException: Object should first be initialized (ImageView).
at b4j/anywheresoftware.b4a.keywords.Common.CallSub4(Unknown Source)
at b4j/anywheresoftware.b4a.keywords.Common.CallSubNew2(Unknown Source)
at b4j/b4j.example.b4xpagesmanager._createpageifneeded(Unknown Source)
at b4j/b4j.example.b4xpagesmanager._showpage(Unknown Source)
at b4j/b4j.example.b4xpagesmanager._addpage(Unknown Source)
at b4j/b4j.example.b4xpagesmanager._addpageandcreate(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(Unknown Source)
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.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.loadLayoutHeader(Unknown Source)
at b4j/anywheresoftware.b4j.objects.LayoutBuilder.loadLayout(Unknown Source)
at b4j/anywheresoftware.b4j.objects.PaneWrapper.LoadLayout(Unknown Source)
at b4j/anywheresoftware.b4a.objects.B4XViewWrapper.LoadLayout(Unknown Source)
at b4j/b4j.example.b4xmainpage._b4xpage_created(Unknown Source)
at b4j/b4j.example.b4xmainpage.callSub(Unknown Source)
... 24 more
 
Upvote 0
Top