Embeddable Java Virtual Machine JVM implementation.
ristretto java can be installed using the following methods:
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/theseus-rs/ristretto/releases/latest/download/ristretto_java-installer.sh | shirm https://github.com/theseus-rs/ristretto/releases/latest/download/ristretto_java-installer.ps1 | iexFor more information, and additional installations instructions (cargo, homebrew, msi), visit the ristretto site.
- Standard runtime classes backed by LTS versions of AWS Corretto.
- Flexible class loading from directories, JARs, JMODs, JImage files, and URLs.
- Built-in support for reading, writing, and strictly verifying Java bytecode.
- Interpreter support for all Java byte codes including invokedynamic.
- Fully asynchronous, non-blocking execution using Rust async/await for:
- java.lang.Process
- java.lang.Thread
- java.io & java.nio
- java.net
- A low-pause, concurrent, and parallel mark-and-sweep garbage collector.
- Parallel Just-In-Time (JIT) compilation for x86-64, aarch64, s390x, and riscv64 architectures.
- WebAssembly (WASM) compilation support for single-threaded edge and browser deployments.
- Native Maven POM (Project Object Model) parsing.
The Java runtime requires hundreds of native methods. This project aims to provide Rust equivalents for these methods.
If a native method is called that is not implemented, the program throw a java.lang.UnsatisfiedLinkError. Please
submit a pull request, or open an issue if you need a specific native method implemented.
Support for the Security Manager is not implemented and there are no plans to implement it. The security manager has been deprecated; see: JEP 411
System.getSecurityManager() will always return null, and System.setSecurityManager() will throw an exception.
Support for finalizers is not implemented and there are no plans to implement it. Finalizers have been deprecated; see: JEP 421
Licensed under either of
- Apache License, Version 2.0, (LICENSE-APACHE or https://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or https://opensource.org/licenses/MIT)
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.