OpenJDK Plugin
Officialavm-plugin-java • Precompiled Native Executable
Interactive Tutorial & CLI Demo
OpenJDK Temurin Plugin Walkthrough
Illustrative walkthrough: release versions, output and timings vary by platform and network. Install a JDK before setting up Android.
avm-plugin-java
Interactive CLI
Step 01 of 06:Add Plugin
Execution overhead:0.8s
# Install native OpenJDK provider powered by Eclipse Temurin & Foojay Disco API
$
Quick Installation
Install the precompiled standalone executable directly into ~/.avm/plugins/avm-plugin-java:
avm plugin add java
Key Commands
| Command | Purpose | Copy |
|---|---|---|
| avm plugin add java | Install native OpenJDK provider binary | |
| avm java versions | Browse available OpenJDK Temurin builds | |
| avm java 17 versions | List all patch builds for OpenJDK 17 | |
| avm java install 17 | Install latest OpenJDK 17 and pin locally | |
| avm java use openjdk-17.0.13+11 | Select exact Java version in .avm.json | |
| avm java list | Show currently selected and installed OpenJDK versions |
Environment Variable Injections
When you run an alias (e.g. avm dev) or call shims directly, the plugin exports the following environment variables:
JAVA_HOMEAuto-injected
PATH (via shims)Auto-injected
Sample Project Configuration (.avm.json)
{
"tools": {
"java": "openjdk-17.0.13+11"
},
"env": {
"GRADLE_OPTS": "-Dorg.gradle.daemon=true"
}
}Features & Highlights
- Eclipse Temurin builds powered by foojay Disco API
- Automatic in-process JAVA_HOME export upon version activation
- Exact build pin or bare major support (e.g. "17" resolves to latest)
- Installs with openjdk- prefix for seamless coexistence
- Cross-platform lock metadata and verified offline-metadata installs