Hello Mandy, this was a good test: > > > > ./build/linux-x64/jdk/bin/java -XX:+UnlockExperimentalVMOptions -XX: > > +EnableJVMCI -XX:+UseJVMCICompiler -jar ... > > You can also try running the above command with -Djava.security.manager > as a sanity test (the application may need additional permissions) - > just a sanity test.
I've just tried: $ ./build/linux-x64/jdk/bin/java -XX:+UnlockExperimentalVMOptions -XX: +EnableJVMCI -XX:+UseJVMCICompiler -Djava.security.manager -jar ~/ NetBeansProjects/sieve/java/algorithm/target/sieve-algorithm-1.0-SNAPSHOT.jar and it doesn't work. I am getting an error below, however the code is not running through my module at all. I don't understand the failure, I will have to investigate more. -jt Caused by: java.security.AccessControlException: access denied ("java.lang.RuntimePermission" "accessClassInPackage.jdk.vm.ci.services") at java.base/ java.security.AccessControlContext.checkPermission(AccessControlContext.java: 472) at java.base/ java.security.AccessController.checkPermission(AccessController.java:895) at java.base/ java.lang.SecurityManager.checkPermission(SecurityManager.java:558) at java.base/ java.lang.SecurityManager.checkPackageAccess(SecurityManager.java:1534) at java.base/java.lang.ClassLoader$1.run(ClassLoader.java:680) at java.base/java.lang.ClassLoader$1.run(ClassLoader.java:678) at java.base/java.security.AccessController.doPrivileged(Native Method) at java.base/ java.lang.ClassLoader.checkPackageAccess(ClassLoader.java:678) at java.base/java.lang.ClassLoader.defineClass1(Native Method) at java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1006) at java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1085) at java.base/ java.security.SecureClassLoader.defineClass(SecureClassLoader.java:206) at java.base/ jdk.internal.loader.BuiltinClassLoader.defineClass(BuiltinClassLoader.java:760) at java.base/jdk.internal.loader.BuiltinClassLoader.lambda $findClassInModuleOrNull$2(BuiltinClassLoader.java:683) at java.base/java.security.AccessController.doPrivileged(Native Method) at java.base/ jdk.internal.loader.BuiltinClassLoader.findClassInModuleOrNull(BuiltinClassLoader.java: 684) at java.base/ jdk.internal.loader.BuiltinClassLoader.findClass(BuiltinClassLoader.java:562) at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:607) at java.base/java.lang.Class.forName(Class.java:451) at java.base/java.util.ServiceLoader.lambda$loadProvider $1(ServiceLoader.java:856) at java.base/java.security.AccessController.doPrivileged(Native Method) at java.base/java.util.ServiceLoader.loadProvider(ServiceLoader.java: 858)