matlab/matlab-agentic-toolkit / skills-catalog/matlab-external-language-interfaces/matlab-configure-java
matlab-configure-java
VerifiedCheck which Java version MATLAB is using, switch it, or reset it without accidentally starting Java. Use this skill when a user wants to determine which Java/JDK/JRE version MATLAB is using, configure MATLAB to use a different JDK, or revert to the MATLAB default Java, or when a MATLAB script errors on a java.* API call ("no runtime environment for Java applications has been found", "Unable to find Java library"). Covers jenv and matlab_jenv, R2025a+ dynamic loading, restart requirements based on Java load status, and release- and platform-specific reset behavior. Also handles installing OpenJDK (the MATLAB Add-Ons Explorer, Adoptium, or a command-line mpm install through matlab-core:matlab-install-products).
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 19.7 KB |
| manifest.yaml | config | 525 B |
| references/error-signatures.md | markdown | 1.9 KB |
| references/load-status-check.md | markdown | 2.6 KB |
references/error-signatures.md
View on GitHub# Java Runtime Error Signatures
Verbatim MATLAB error-text patterns that fire Branch A of this skill. Match against these when a MATLAB script errors on a `java.*` API call.
## R2026a and later
**Verbatim text (captured live on R2026b; same message on R2026a):**
> This feature is attempting to execute Java code, but no runtime environment for Java applications has been found. Explore your options at MATLAB Support for OpenJDK.
**Match tokens:** *"no runtime environment for Java applications has been found"* — this phrase is stable.
**Embedded link:** the error contains an inline link to [`https://www.mathworks.com/matlab-openjdk`](https://www.mathworks.com/matlab-openjdk). Surface this link to the user; it is the MathWorks-sanctioned source for supported JDK versions.
## R2025a and R2025b
**Verbatim text (`{0}` is filled in with a path):**
> Unable to find Java library: {0}
> Please check if you have a MATLAB_JAVA environment variable.
> Note that MATLAB requires Java version 1.8 or higher.
**Match tokens:** *"Unable to find Java library"* — treat as equivalent to the R2026a+ text for routing purposes.
The message mentions an environment variable. Do not repeat that as the fix; follow Branch A.
## What to do after a match
Follow *Workflow — Branch A: Script Hits a Java API* in `SKILL.md`: present Option A and Option B from step 2, give the R2025a+ behavior from step 3, then re-run the script and verify with `jenv` (steps 4 and 5).
## What does NOT match
Do **not** fire Branch A on:
- `undefined function or variable 'java...'` — that is a MATLAB-syntax error, not a runtime-missing error.
- `No class definition found` / `java.lang.ClassNotFoundException` — Java is loaded, class path is wrong. Out of scope for this skill; the user is looking at `javaaddpath` / JAR-management guidance.
- License-related MATLAB launch failures — see the "When NOT to Use" section in `SKILL.md`.
----
Copyright 2026 The MathWorks, Inc.
----
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| reverse-engineer-anythingmorluto/reaReverse engineer native, managed, Electron/JavaScript, packaged, firmware, and browser targets with REA, and build agent environments (AgentEnv bundles) of web applications from a live instance or a capture, and of Linux desktop apps with a task from a request. Use shipped-artifact or requested runtime evidence to explain features, compare versions, decompile code, or guide a reconstruction. Skip REA for ordinary source-repository architecture analysis. | Stars: 468k | Updated | Claude CodeCodex | Unverified | Install |
| diagnosing-superpowersobra/superpowersUse when a superpowers session went wrong and your human partner wants to know why — repeated work, ignored plans, stumbles, poor results, a skill that didn't fire, "it took too long", "why is it so expensive", "what is it doing" — or wants to build a bug report for the superpowers maintainers, for the current session or a past one identified by id or path, on any harness. | Stars: 319k | Updated | Claude CodeCodex | Verified | Install |
| dispatching-parallel-agentsobra/superpowersUse when facing 2+ independent tasks that can be worked on without shared state or sequential dependencies | Stars: 319k | Updated | Claude CodeCodex | Verified | Install |
| executing-plansobra/superpowersUse when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available | Stars: 319k | Updated | Claude CodeCodex | Verified | Install |