🍺 BREW Explorer

← all formulae

jenv

brew install jenv v0.6.0 MIT

Shell utility to manage and switch between multiple Java versions, setting JAVA_HOME per-shell or per-directory.

Why you might care

Essential for development workflows that require multiple JDK versions (Android development on Java 8 vs. server apps on Java 11+). Works like rbenv/nvm, letting you set Java versions globally, locally, or per-shell without modifying your system Java. jenv doesn't install Java—use brew to install JDKs separately, then jenv manages them.

Categories

Alternatives

SDKMAN asdf jabba
3.2k
30-day installs · #775
9.6k
90-day · #824
53.6k
365-day · #648
6.6k
★ GitHub stars · updated 3mo ago

Links

Caveats

To activate jenv, add the following to your shell profile e.g. ~/.profile
or ~/.zshrc:
  export PATH="$HOME/.jenv/bin:$PATH"
  eval "$(jenv init -)"

Blurb generated by claude-haiku-4-5 on today.

Raw metadata
{
  "aliases": [],
  "alternatives": [
    "SDKMAN",
    "asdf",
    "jabba"
  ],
  "build_dependencies": [],
  "categories": [
    "shell",
    "version-control"
  ],
  "caveats": "To activate jenv, add the following to your shell profile e.g. ~/.profile\nor ~/.zshrc:\n  export PATH=\"$HOME/.jenv/bin:$PATH\"\n  eval \"$(jenv init -)\"\n",
  "conflicts_with": [],
  "dependencies": [],
  "deprecated": 0,
  "deprecation_reason": null,
  "desc": "Manage your Java environment",
  "disable_reason": null,
  "disabled": 0,
  "enrichment_fetched_at": "2026-06-20T23:39:00+00:00",
  "first_seen": "2026-06-20T23:34:18+00:00",
  "full_name": "jenv",
  "github_default_branch": "master",
  "github_last_commit_at": "2026-02-22T09:58:28Z",
  "github_readme_excerpt": "# Master your Java Environment with jenv\n\nWebsite : https://www.jenv.be\n\nMaintainers : \n- [Gildas Cuisinier](https://github.com/gcuisinier/)\n\nFuture maintainer in discussion:\n- [Benjamin Berman](https://github.com/doctorpangloss) \n\nAs he makes an incredible work by taking time to merge the Pull Request on his fork, I (@gcuisinier) am in discussion with him to take part of jEnv directly if he wants.\nWhatever his decision, I thank him for his work, and to have convincing me to think about the future of jEnv and accepting a new maintainer for the good of the project.\n\n## What\u0027s jEnv ?\n\nThis is an updated fork of `jenv`, a beloved Java environment manager adapted from `rbenv`.\n\n`jenv` gives you a few critical affordances for using `java` on development machines:\n\n - It lets you switch between `java` versions. This is useful when developing Android applications, which generally require Java 8 for its tools, versus server applications, which use later versions like Java 11.\n - It sets `JAVA_HOME` inside your shell, in a way that can be set globally, local to the current working directory or per shell.\n\nHowever, this project does **not**:\n\n - Install `java` for you. Use your platform appropriate package manager to install `java`. On macOS, `brew` is recommended.\n\nThis document will show you how to install `jenv`, review its most common commands, show example workflows and identify known issues.\n\n### Contents\n\n 1. [Getting Started](#1-getting-started)\n 2. [Plugins](#2-plugins)\n 3. [Example Workflows](#3-common-workflows)\n 4. [Known Issues](#4-known-issues)\n\n### 1. Getting Started\n\nFollow the steps below to get a working `jenv` installation with knowledge of your `java` environment. Read all the code you execute carefully: a `$` symbol at the beginning of a line should be omitted, since it\u0027s meant to show you entering a command into your terminal and observing the response after the command.\n\n#### 1.1 Installing `jenv`\n\nOn macOS, you can install jEnv using [Homebrew](https:/",
  "github_repo": "jenv/jenv",
  "github_stars": 6620,
  "github_topics": [],
  "homepage": "https://github.com/jenv/jenv",
  "homepage_og_description": null,
  "homepage_og_image": null,
  "homepage_title": null,
  "installs_30d": 3194,
  "installs_365d": 53593,
  "installs_90d": 9627,
  "keg_only": 0,
  "keg_only_reason": null,
  "last_seen": "2026-06-20T23:34:18+00:00",
  "license": "MIT",
  "llm_generated_at": "2026-06-20T23:46:59+00:00",
  "llm_model": "claude-haiku-4-5",
  "name": "jenv",
  "oldnames": [],
  "one_liner": "Shell utility to manage and switch between multiple Java versions, setting JAVA_HOME per-shell or per-directory.",
  "optional_dependencies": [],
  "rank_30d": 775,
  "rank_365d": 648,
  "rank_90d": 824,
  "raw_hash": "b9d887df49eccfd0",
  "recommended_dependencies": [],
  "revision": 0,
  "ruby_source_path": "Formula/j/jenv.rb",
  "tap": "homebrew/core",
  "test_dependencies": [],
  "uses_from_macos": [],
  "version_head": "HEAD",
  "version_stable": "0.6.0",
  "versioned_formulae": [],
  "why_use_this": "Essential for development workflows that require multiple JDK versions (Android development on Java 8 vs. server apps on Java 11+). Works like rbenv/nvm, letting you set Java versions globally, locally, or per-shell without modifying your system Java. jenv doesn\u0027t install Java\u2014use brew to install JDKs separately, then jenv manages them."
}