Perl 5 on the JVM — single jar, batteries included
PerlOnJava compiles Perl to JVM bytecode. Existing Perl scripts can run on any platform with a JVM, and the runtime includes 150+ bundled modules, a CPAN client, a PSGI web server, and JDBC database access — all in a single jar, with no native dependencies beyond Java 24+.
Compatibility is substantial but not complete. Check the feature matrix and the bundled-module list before relying on a particular language feature or CPAN module. PerlOnJava is an independent project, not part of the Perl core distribution.
- Single jar distribution — no installation, no dependencies beyond Java
- Full toolchain —
jperl,jperldoc,jcpan,jprove - 150+ modules included — DBI, Moose / Class::MOP, Plack::Handler::Netty, HTTP::Tiny, JSON, XML::Parser, YAML, Text::CSV, and more
- Web server (PSGI) — run web apps with Plack::Handler::Netty
- Install more with jcpan — pure-Perl CPAN modules work out of the box
- JDBC database access — PostgreSQL, MySQL, SQLite, Oracle via standard JDBC drivers
- Perl ithreads —
threads,threads::shared,Thread::Queue, andThread::Semaphoreon both backends (details) - Embed in Java apps — JSR-223 ScriptEngine integration
- Perl 5.44 language compatibility target — coverage and limitations are tracked in the feature matrix
Requires: JDK 24 or later (java -version), Git, Make.
git clone https://github.com/fglock/PerlOnJava.git
cd PerlOnJava
make
./jperl -E 'say "Hello World"'
./jperl -MJSON -E 'say encode_json({hello => "world"})'Full Quick Start Guide — installation options, database setup, Docker.
About: Why PerlOnJava? | Roadmap | Changelog | Support
Project governance: Security | AI Policy | Code of Conduct
See CONTRIBUTING.md for build instructions, code organization, and how to submit pull requests.
Same terms as Perl 5 — Artistic License or GPL v1+. See LICENSE.md. Copyright (c) 2024–2026 Flavio Glock.