Recently coming to a new project, I\'m trying to compile our source code. Everything worked fine yesterday, but today is another story.
Every time I\'m running
I uninstalled the JDK that comes in the repositories:
$ sudo apt purge openjdk-8-jdk
$ sudo apt autoremove
Then I deleted the JAVA_HOME environment variable. Mine was set in my .bashrc.
Then I reinstalled it through SDKMAN:
$ sdk install java 8.0.181-zulu
From their site:
SDKMAN! is a tool for managing parallel versions of multiple Software Development Kits on most Unix based systems. It provides a convenient Command Line Interface (CLI) and API for installing, switching, removing and listing Candidates.
To see other versions of the JDK to install, use:
$ sdk list java