B4J Question Release version

moore_it

Well-Known Member
Licensed User
Longtime User
Hi all,

i've a program that run perfectly if i compile in release mode from ide, when i get the .jar in the object folder and put it in desktop the .jar not start, or start but not work, in task manager i see only java (TM) Platform SE Binary.

I use the notification class.

Thanks in advice
 

moore_it

Well-Known Member
Licensed User
Longtime User
C:\Users\.....\Desktop\B4JPackager11\Objects\temp\build>cd bin

C:\Users\.....\Desktop\B4JPackager11\Objects\temp\build\bin>java.exe @release_java_modules.txt -m b4j/b4j.example.main
Exception in thread "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 java.base/sun.launcher.LauncherHelper$FXHelper.main(Unknown Source)
Caused by: java.lang.NoClassDefFoundError: anywheresoftware/b4a/BA
at java.base/java.lang.Class.getDeclaredMethods0(Native Method)
at java.base/java.lang.Class.privateGetDeclaredMethods(Unknown Source)
at java.base/java.lang.Class.getMethodsRecursive(Unknown Source)
at java.base/java.lang.Class.getMethod0(Unknown Source)
at java.base/java.lang.Class.getMethod(Unknown Source)
at javafx.graphics/com.sun.javafx.application.LauncherImpl.launchApplicationWithArgs(Unknown Source)
at javafx.graphics/com.sun.javafx.application.LauncherImpl.launchApplication(Unknown Source)
... 5 more
Caused by: java.lang.ClassNotFoundException: anywheresoftware.b4a.BA
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
 
Upvote 0

moore_it

Well-Known Member
Licensed User
Longtime User
Hi,

I try with true in mergelibrary and release not work but .... i built with pakager my application an work fine !

Thanks Erel !
 
Upvote 0
Top