7

Jörg Pfründer

 1 year ago
source link: https://joerg-pfruender.github.io/software/java/2022/12/30/sdkman_j.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

Easily switch between java versions with SDKMAN! and 'j'

Dec 30, 2022

You usually want to keep your projects up-to-date to the latest java version. But sometimes that is not possible.

Then you need to switch between different java versions, depending on the project you are working.

SDKMAN!

https://sdkman.io/ is my recommended tool for the job.

But it has one downside:

In my day-to-day development job I usually don’t care much about java’s patch versions. And I usually don’t care about using amazon corretto, OpenJDK, Oracle or Zulu java.

I don’t want to remember the specific vendor and subversion, I just want some java 17.

This is where “j” comes in:

j↗ is an easy to use, but hard to google script that does a best guess of my desired java version.

So I just type


j 17

and I get some java 17.

btw.:

For switching versions of node.js and npm I use node version manager

Happy new year!

Any comments or suggestions? Leave an issue or a pull request or discuss on reddit!


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK