B4J Question [SOLVED] IllegalAccessException

moore_it

Well-Known Member
Licensed User
Longtime User
Hi all,
i use B4J 9.10 with jdk-11.0.1 use SSHJ module for SFTP connections and bcprov-jdk15on-1.69,bcpkix-jdk15on-1.69 for bouncycastle in #AdditionalJar and #MergeLibraries: true ,

the problem is :

1 - In debug no problems
2 - In release no problems
3- In package standalone have this problem

java.lang.IllegalAccessException: class java.security.Provider (in module java.base) cannot access class org.bouncycastle.jcajce.provider.asymmetric.ec.KeyPairGeneratorSpi$ECDSA (in module b4j) because module b4j does not export org.bouncycastle.jcajce.provider.asymmetric.ec to module java.base

Experts have Ideas , solutions ?
Thanks
 

moore_it

Well-Known Member
Licensed User
Longtime User
But ... sorry Erel where i found this info ?

B4X:
#PackagerProperty: VMArgs = --add-opens b4j/org.bouncycastle.jcajce.provider.asymmetric.ec=java.base
 
Upvote 0
Top