How can I use modules with LuaJ?

This page summarizes the projects mentioned and recommended in the original post on /r/javahelp

Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
  • luaj

    Lightweight, fast, Java-centric Lua interpreter written for JME and JSE, with string, table, package, math, io, os, debug, coroutine & luajava libraries, JSR-223 bindings, all metatags, weak tables and unique direct lua-to-java-bytecode compiling.

  • I'm getting an exception that the lua interpreter cannot find the "helper" module, and I'm not sure why. I'm reading the ReadMe on their GitHub page about require, https://github.com/luaj/luaj, in the Libraries of Java Functions section, and there isn't anything about calling other lua files. Do I need to load each of them with globals.loadfile? I'm not exactly sure where this is going wrong, I'd assume the interpreter would understand the require keyword and look for a helper.lua file.

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts