Java Question Compile to library - b4a & b4j

derez

Expert
Licensed User
Longtime User
I compile to library the same class module in b4a and b4j but the result library compilation in b4a runs only in b4a, not in b4j, and vice versa.
Why ?
 

derez

Expert
Licensed User
Longtime User
B4j error running b4a compiled module:
Program started.
astar.innerInitialize (java line: 12)
java.lang.InstantiationError: anywheresoftware.b4a.BA
at derez.astar.astar.innerInitialize(astar.java:12)
at derez.astar.astar._initialize(astar.java:247)
at derez.astar.main._appstart(main.java:73)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:93)
at anywheresoftware.b4a.BA.raiseEvent(BA.java:84)
at derez.astar.main.start(main.java:35)
at com.sun.javafx.application.LauncherImpl$5.run(LauncherImpl.java:319)
at com.sun.javafx.application.PlatformImpl$5.run(PlatformImpl.java:215)
at com.sun.javafx.application.PlatformImpl$4$1.run(PlatformImpl.java:179)
at com.sun.javafx.application.PlatformImpl$4$1.run(PlatformImpl.java:176)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.javafx.application.PlatformImpl$4.run(PlatformImpl.java:176)
at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
at com.sun.glass.ui.win.WinApplication.access$100(WinApplication.java:29)
at com.sun.glass.ui.win.WinApplication$3$1.run(WinApplication.java:73)
at java.lang.Thread.run(Thread.java:722)
lines 11 and 12 are :
B4X:
Type Cell( v As Boolean)
Dim A(20,20) As Cell

B4a error running b4j compiled module:
Parsing code. 0.03
Compiling code. 0.14
Compiling layouts code. 0.00
Generating R file. 0.03
Compiling generated Java code. 1.02
Convert byte code - optimized dex. Error
A referenced library is missing: jcore
 
Top