A specialized automation for macOS that manages multiple OpenJDK versions, handles Homebrew installations, and configures environment variables automatically.
The fastest way to install a skill directly from the registry.
npx clawhub@latest install java-switch
Copy the skill folder to one of these locations
~/.openclaw/skills/ <project>/skills/ Priority: Workspace > Local > Bundled
Copy this prompt to OpenClaw to install it automatically.
Help me install java-switch using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).
Get the raw skill files in a ZIP archive.
The java-switch skill is designed to solve the common developer pain point of managing multiple Java environments on macOS. By integrating with the native /usr/libexec/java_home utility and Homebrew, this skill allows users to switch between versions like Java 8, 11, 17, or 21 with simple natural language commands. Using Openclaw Skills for environment management ensures that your development workspace remains consistent and properly configured without manual shell editing.
Beyond just switching, the skill proactively checks for missing dependencies. If a requested Java version is not present, it will use Homebrew to fetch and install the correct OpenJDK package, link it to the system, and update your configuration files. This makes it an essential tool for developers working on polyglot projects or legacy systems that require specific JDK runtimes.
To use this within your environment, ensure you are on a macOS system. The skill handles the heavy lifting via Openclaw Skills integration. If you need to manually prepare the environment, you can ensure Homebrew is ready:
# Install Homebrew if not already present
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
# The skill will then handle the following via its internal logic:
brew install openjdk@17
The skill manages data across the following macOS system locations:
| Feature | Path / Command | Description |
|---|---|---|
| Version Discovery | /usr/libexec/java_home |
Used to locate all installed JDKs |
| Shell Configuration | ~/.zshrc |
Stores the persistent JAVA_HOME export |
| Installation Path | /opt/homebrew/opt/ |
Default location for OpenJDK on Apple Silicon |
| Metadata | java -version |
Used to verify the active runtime version |
Loading
A technical workflow for consolidating redundant AI agent skills into a single, canonical version and synchronizing changes with ClawHub.

A sophisticated AI-driven automation system that handles job discovery, resume tailoring, and ATS application submission.

An asynchronous code review skill that uses the Propel Review API to analyze Git diffs and provide actionable feedback for AI agents.

An autonomous programming system that decomposes requirements, performs deep analysis, and iterates through self-reflection to deliver production-ready code.

A specialized skill for programmatically creating and renaming worksheet tabs within Feishu spreadsheets through intelligent browser automation.

A streamlined workflow for capturing, organizing, and expanding article inspirations into structured drafts and content pools.








































