Month: August 2022

Different java version for each project

Different java version for each project

Since September 2017 Oracle started releasing new Java language version every 6 months. Of course many versions are non-LTS and I used them only to check out new language features. Last year Java 17 was released (LTS release) and it’s getting more and more adoption.

At my work I usually work with many projects each opened in separate IntelliJ IDEA window. It’s pretty common when you work with microservices. Because each service is maintained by different team it is not unusual that one service is using Java 11 and other requires Java 17.

To install and manage many versions of JDK I prefer to use SDKMAN! (sdkman.io). It manages not only Java SDK but also other language SDKs like Scala, Kotlin. No need to look for new tool or learn how to use them.

Continue reading “Different java version for each project”

Tldr – quick help for console commands

Most of the time I use applications with graphical interface but sometimes I still use console tools. They are often faster and more reliable. In some cases there are no alternatives to some command line tools or simply there is no graphical interface available. The problem is that I always forget how to invoke some specific commands.

In that situations I check man pages or simply google it. There is a small utility called tldr that can display only short documentation (in contrast to man pages) with examples how to use given command. To install this tool use brew formula.

Continue reading “Tldr – quick help for console commands”