JEnv For Windows

JEnv for Windows switches the active Java version with a short command.

github.com/FelixSelter/JEnv-for-Windows
JEnv For Windows homepage screenshot

About JEnv For Windows

JEnv for Windows is an open source command-line tool that changes the active Java version (JDK) on a Windows machine. It is written in cmd and PowerShell and works on Windows 10 and later. The repository describes it as useful for testing and for projects that need different Java versions. For example, a Gradle project that requires Java 8 can be built without changing environment variables, and the user can then switch back to Java 15.

Users register each JDK by name and path, then select a version for the current session, globally, or for a specific folder. The source notes that adding a JDK requires an absolute path, that some users reported problems when installing JEnv in C:\Programs because of admin rights, and that jenv may need to be called when entering a folder with a local version so that tools such as Maven work correctly.

Key features

  • Switch the Java version for the current session with jenv use
  • Change the global Java version with jenv change
  • Set a Java version for a specific folder with jenv local
  • Register JDK installations by name and path with jenv add
  • Search folders for installed Java versions with jenv autoscan
  • Make javac or other JDK executables available with jenv link
Best for: Windows developers who work on several Java projects that require different JDK versions.
Good for
  • Open source under the Apache-2.0 license
  • Changes Java versions with short commands instead of manual environment variable edits
  • Runs on Windows 10 and later, with support for both cmd and PowerShell
Watch out for
  • Only for Windows
  • Adding a JDK requires an absolute path, and some users reported admin rights problems in C:\Programs
  • Sometimes jenv must be called when entering a folder with a local version so tools like Maven work

JEnv For Windows at a glance

Type
Open-source project
Pricing
Not confirmed. Check the site
Platforms
Windows
Open source
Yes · Source code
Language
English
Last checked
Oct 6, 2026 · Online when checked
Listed
Oct 5, 2026

JEnv For Windows alternatives

Tools and sites you could use instead, ranked by how closely they match.

All 24 alternatives

Popular in Programming Languages

Well-known listings from the same topic.

All 66

JEnv For Windows FAQ

Can JEnv be used from both cmd and PowerShell?
Yes. The source says it is written in cmd and PowerShell. In cmd, you call the batch file. In PowerShell, you call src/jenv.ps1.
Why might Maven not use the expected Java version in a project folder?
The source says it is sometimes necessary to call jenv when entering a directory with a local jenv setting. This sets JAVA_HOME for the current shell, which helps tools like Maven work properly.
Is something wrong or out of date?

Tell us and an editor will check it.

Own this website?

Claim the listing and suggest updates yourself. An editor checks every claim first.

Claim this listing