DasBrain / PanamaRuntimeModule

Example loading a module at runtime

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PanamaRuntimeModule

Example loading a module at runtime

This is a small reproducer for trying to use restricted foreign methods from a module not in the boot layer.

Compile with

javac --release 18 -d bin --module launcher,plugin --module-source-path src

Run with

java --enable-native-access=plugin -p bin/launcher -m launcher/launcher.Launcher

For convinience build.bat/build.sh will run javac, and run.bat/run.sh will run java.

About

Example loading a module at runtime

License:MIT License


Languages

Language:Java 82.0%Language:Batchfile 9.1%Language:Shell 9.0%