Java 9 Platform Module System
The Java Platform Module System is a built-in way to express relationships between Java modules, starting from Java 9.
To use LuaJava in your Java module, simply place the following requires
statements in your module-info.java
:
java
module my.java.module {
// ...
requires party.iroiro.luajava;
// Replace lua51 with your Lua version: lua51/lua52/lua53/lua54/luajit/luaj
requires party.iroiro.luajava.lua51;
// ...
}
1
2
3
4
5
6
7
8
9
2
3
4
5
6
7
8
9
Modules
All the modules are either automatic modules or unnamed modules.
- The
party.iroiro.luajava
module is an automatic module, wrapping around theparty.iroiro.luajava:luajava
artifact. - The
party.iroiro.luajava.lua*
modules are automatic ones, wrapping Java side bindings for Lua binaries. - The native binary JARs are put into the unnamed module.