- Native Image
- GraalVM Updater
- Embedding Reference
- Polyglot Programming
- JVM Languages Reference
- Node.js Runtime
- Java Interoperability
- Differences Between Node.js and Java Embeddings
- ScriptEngine Implementation
- LLVM Languages Reference
- Python Reference
- Ruby Reference
- R Reference Manual
- WebAssembly Reference
This document serves as a migration guide for code previously targeted to the Rhino engine. See the Java Interoperability guide for an overview of supported features.
Java.type(typename) instead of
You have to explicitly load the classes using
Packages global object, but loading the classes explicitly is still encouraged.
The following Java package globals are available in Nashorn compatibility mode (
Console Output of Java Classes and Java Objects #
This is an alias for
console.log in Node mode as it does not implement special treatment for such objects.
For instance, you can query the
length behaves like a data property, not like a function.
JavaImporter feature is available only in Nashorn compatibility mode (