Java Versioning and Installation


Look for version

>> brew search java


>> brew tap adoptopenjdk/openjdk>> brew install --cask adoptopenjdk8
>> brew install --cask adoptopenjdk11
>> apt install default-jre
>> apt install openjdk-8-jre-headless
>> apt install openjdk-11-jre-headless
>> java -version
>> /usr/libexec/java_home -V

Let’s start

Java Environment (jenv)

>> brew install jenv

We’re all set, Let’s do some experimenting

>> java -version
>> jenv add /Library/Java/JavaVirtualMachines/jdk1.8.0_221.jdk/Contents/Home
>> jenv versions
>> jenv local 1.8
>> jenv global 1.8
>> jenv commands




Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Traceback, HackTheBox Writeup

Case Study : Modelling tax rules with Rulette — Part Two

Native iOS App​ Development: My Cure for Impostor Syndrome

JAVA for new Beginners 👩‍💻How to start coding in JAVA 👩‍💻

Design Pattern Download: The Composite Pattern

Python Script to retrieve Live crypto prices from MEXC exchange

C# 9.0 Init-Only Properties

How do you make your own Web-Crawler?

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store


More from Medium

Docker for Java Dev environment with IntelliJ and Gateway

Multi Maven & Git Repositories App Service Azure DevOps Deployment

ALL Enterprise Java applications are exposed to this security vulnerability

Trackpad gestures on MacOS in Java