Java Question Use B4J Map in Java code

wl

Well-Known Member
Licensed User
Longtime User
Hi,

I'm trying to modify a Java library somehow to include it to write data in a B4J Map: this map would be written to file in the Java application and read in a B4J application.

Compiling seems to work, but when I run the application I get:


Error:
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [na:1.8.0_251]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [na:1.8.0_251]
        at java.lang.Thread.run(Thread.java:748) [na:1.8.0_251]
Caused by: java.lang.ClassNotFoundException: anywheresoftware.b4a.objects.collections.Map
        at java.net.URLClassLoader.findClass(URLClassLoader.java:382) ~[na:1.8.0_251]
        at java.lang.ClassLoader.loadClass(ClassLoader.java:418) ~[na:1.8.0_251]
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:355) ~[na:1.8.0_251]
        at java.lang.ClassLoader.loadClass(ClassLoader.java:351) ~[na:1.8.0_251]
        ... 14 common frames omitted

I added the location of the B4J libraries to my classpath, but the issue remains...

Any hints ?

Thanks
 
Top