grzegorzu78
Member
I wanted to refresh the question again because I still have problems with the proper operation of the program.
I get an error: (IllegalAccessException) java.lang.IllegalAccessException: class anywheresoftware.b4j.object.JavaObject cannot access class com.sun.org.apache.xerces.internal.dom.CoreDocumentImpl (in module java.xml) because module java.xml does not export com.sun.org.apache.xerces.internal.dom to unnamed module @5b87ed94
I made changes to the code as suggested in another thread, adding: #VirtualMachineArgs: --add-opens java.xml/com.sun.org.apache.xerces.internal.dom=ALL-UNNAMED
The program code looks as follows:
I have: B4J is version 10.0. Temurin is version 21.0.3 LTS
Can anyone advise what needs to be improved?
I get an error: (IllegalAccessException) java.lang.IllegalAccessException: class anywheresoftware.b4j.object.JavaObject cannot access class com.sun.org.apache.xerces.internal.dom.CoreDocumentImpl (in module java.xml) because module java.xml does not export com.sun.org.apache.xerces.internal.dom to unnamed module @5b87ed94
I made changes to the code as suggested in another thread, adding: #VirtualMachineArgs: --add-opens java.xml/com.sun.org.apache.xerces.internal.dom=ALL-UNNAMED
The program code looks as follows:
B4X:
'Non-UI application (console / server application)
#Region Project Attributes
#CommandLineArgs:
#MergeLibraries: True
#VirtualMachineArgs: --add-opens java.xml/com.sun.org.apache.xerces.internal.dom=ALL-UNNAMED
#End Region
I have: B4J is version 10.0. Temurin is version 21.0.3 LTS
Can anyone advise what needs to be improved?