I followed this post to try out the ABMaterial sample, which worked fine.
My goal is to try it on a VPS, which would need to be able to launch the jar.
As the next step in the process I tried running the Template.jar on the command line (locally), but it gave error:
Resolved that by adding --add-opens as in:
where the project package is com.ab.template.
Then it gave error:
... and I've been unable to get past that.
Is there a solution? I did try #AdditionalJar on ABMaterial.jar, and some guesses involving #PackagerProperty, VMArgs, and even adding JCore.jar as an AdditionalJar without success.
My goal is to try it on a VPS, which would need to be able to launch the jar.
As the next step in the process I tried running the Template.jar on the command line (locally), but it gave error:
java error 1:
Exception in thread "main" java.lang.IllegalAccessError: class com.ab.template.main (in unnamed module @0x17ed40e0) cannot access class anywheresoftware.b4a.StandardBA (in module b4j) because module b4j does not export anywheresoftware.b4a to unnamed module @0x17ed40e0
Resolved that by adding --add-opens as in:
Add Opens:
java -cp Template.jar --add-opens b4j/anywheresoftware.b4a=ALL-UNNAMED --add-opens b4j/anywheresoftware.b4a.keywords=ALL-UNNAMED com.ab.template.main
Then it gave error:
Java Error 2:
java.lang.IllegalAccessError: class com.ab.abmaterial.ABMaterial (in unnamed module @0x3498ed) cannot access class anywheresoftware.b4a.objects.collections.Map (in module b4j) because module b4j does not export anywheresoftware.b4a.objects.collections to unnamed module @0x3498ed
at com.ab.abmaterial.ABMaterial.<clinit>(ABMaterial.java:192)
at com.ab.template.main._process_globals(main.java:193)
at com.ab.template.main.initializeProcessGlobals(main.java:179)
at com.ab.template.main.main(main.java:27)
... and I've been unable to get past that.
Is there a solution? I did try #AdditionalJar on ABMaterial.jar, and some guesses involving #PackagerProperty, VMArgs, and even adding JCore.jar as an AdditionalJar without success.