October DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsPC HealthRecommendedCrashes, freezes, slowdowns? Check your PC nowSpot repairable issues before they interrupt work.Check PCOctober DealsAmazon USDeal season is back - check today's better picksAmazon US: current deals, useful picks and tech finds.See Picks×
Skip to content
World desk4 min

How to Install an Early-Access JDK Alongside Your Current Java Version

Install an early-access JDK separately, verify the archive, and select it only for the shell or project you are testing—without changing your everyday Java default.
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

You can test an early-access (EA) JDK without replacing your current Java installation: download it from an official source, verify the archive, extract it into a separate directory, and select it only for the shell or project you are testing. Keep your stable JDK as the everyday default. EA builds are intended for testing upcoming changes, not production use.

Choose an installation method that keeps the JDK separate

The most reversible approach is to use an official archive and extract it to a new, user-owned directory, such as ~/jdks/jdk-ea-<build> on a Unix-like system. Do not extract over the directory containing your current JDK. Oracle documents archive installation in a writable location on Linux, and multiple installed JDKs with explicit selection on macOS: Oracle’s Linux installation guide and Oracle’s macOS installation guide.

Installer behavior depends on the distributor and platform. For example, Oracle’s Windows JDK 24 installer documentation describes limits on installing multiple versions from the same feature release and replacement behavior for updates. That is Oracle-installer guidance, not a rule for every vendor or archive. Check the instructions for the exact EA distribution you chose, and do not overwrite an active JDK directory.

Install and select the EA build for a test

1. Record which Java installation is active

Before changing anything, note the results of java -version and javac -version. Also inspect JAVA_HOME and the executable your shell finds—for example, command -v java in common Unix shells. The equivalent commands differ on Windows. This baseline helps reveal whether your runtime and compiler were already coming from different installations.

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

2. Get and verify the exact build

Download the EA build from the JDK project’s official EA page or a distributor’s official EA channel. Record its exact version or build identifier; EA artifacts change, and supported operating systems and architectures depend on the current offering. Adoptium describes tagged EA builds and download patterns in its tagged early-access builds article and early-access builds article. Use the vendor’s current download page to confirm what is available rather than assuming an older example remains current.

Before extracting, compare the archive with the publisher’s SHA-256 checksum or verify its GPG signature when provided. Adoptium documents both verification options in its archive installation guidance. A successful check confirms the file matches the publisher-provided reference; it does not certify the EA build for production.

3. Extract into a new directory

Use a unique directory that does not contain your stable JDK. On Linux, Oracle says an archive can be installed in a writable location without root access. Its documentation also warns about overwriting an installation directory with the same name. Archive layouts vary: on macOS, the JDK home inside an archive may be under Contents/Home.

4. Set the JDK for one terminal session

In a Unix-like shell, set JAVA_HOME to the actual JDK home and put its bin directory first on PATH:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
export JAVA_HOME="$HOME/jdks/jdk-ea-<build>"
export PATH="$JAVA_HOME/bin:$PATH"
java -version
javac -version

Replace the example path with the extracted JDK’s real home. This changes the current shell and programs launched from it; it does not establish a universal Windows procedure or change the system default. On macOS, use the correct home within the archive, or select a JDK by its full path or with /usr/libexec/java_home, as Oracle documents in its macOS guide. Shell startup files and environment-variable syntax differ by operating system and shell, so avoid adding the EA path to a global configuration unless you intend to change the default for every relevant session.

5. Confirm both runtime and compiler

Run java -version and javac -version after setting the environment. Both should identify the intended EA build. If either reports the stable JDK, check the value of JAVA_HOME, the order of directories in PATH, and the resolved executable. Do not begin testing until you know which JDK is actually selected.

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Use the EA JDK with a project build tool

A build tool can select a JDK independently of the Java found by your interactive shell. Gradle toolchains can detect locally installed JDKs and use them for project compilation and execution. Gradle’s current guide says automatic downloads cover GA releases, not EA versions, so install the EA build yourself and configure Gradle to detect or locate that local installation. See Gradle’s JVM toolchains guide.

For project testing, prefer a project-specific toolchain or launcher configuration over changing the machine-wide Java default. Confirm the JDK reported or selected by the build tool itself; a successful java -version in your terminal does not by itself prove Gradle is using that same JDK.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Return to your normal Java setup

If you selected the EA build only in a dedicated terminal, close that shell when testing is complete; new sessions will use their usual environment. If you changed a project launcher or configuration, restore the prior setting when the test is over. You can remove the separate EA directory once it is no longer needed, but first confirm it is not shared with another project or managed by a system package. Leave the stable JDK installation intact.

What to know before relying on an EA build

Adoptium describes EA builds as useful for testing changes in the developing codebase and says they are not for production use. Keep the stable JDK available for ordinary work, and treat each EA version as a test target rather than a replacement for your normal runtime.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Leave a Reply

Your email address will not be published. Required fields are marked *

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More from the Wire

  1. World desk4 min
    How to Spot an AI Voice Scam Before Sending MoneyDon’t rely on how a caller sounds. Pause, call back through a known number, and verify the emergency with another trusted person before sending money.
  2. Mountain View desk4 min
    Google’s SynthID Detector: How to Check AI-Generated Images, Video and AudioGoogle’s SynthID Detector looks for an embedded watermark in supported images, video and audio. Here is what its results do—and do not—show.
  3. Redmond desk20 min
    How to create a link to File or Folder in Windows 11Windows 11 gives you several ways to point to a file or folder without moving or duplicating it. You can create a desktop shortcut,…
Recommended PC Tool
Recommended PC Tool
PC Slower Than It Used to Be?Free scan - under a minute
Outdated Drivers Are Slowing You DownFree scan - exact matches

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.