I'm new to linux, I don't understand symbolic links, how apt-get works or how to get back removed files. Almost all commands here are from searching for a solution to the problem.
When I run update-java-alternatives -l
I get
java-1.11.0-openjdk-amd64 1111 /usr/lib/jvm/java-1.11.0-openjdk-amd64
java-1.17.0-openjdk-amd64 1711 /usr/lib/jvm/java-1.17.0-openjdk-amd64
But when I attempt to do ls
or cd
to /usr/lib/jvm/java-1.17.0-openjdk-amd64
I get the error that it doesn't exist.
While I was trying some things I removed the directory, and now I can't get it back, don't know what to install and is not in the recycle bin. Attempted the following commands
sudo apt-get install openjdk-17-jdk // already installed
sudo apt-get install openjdk-17-jre // already installed
I need to get the directory to select it as the home folder for IntelliJ IDEA JRE and be able to run a Spring Boot >6.0 application, since java 11 needs Spring Boot 5.3.
ls /usr/lib/jvm/
returns
default-java java-1.11.0-openjdk-amd64 java-11-openjdk-amd64 java-17-openjdk-amd64 openjdk-17
As you can see I have the directory java-1.11.0-openjdk-amd64
which works fine when selecting it as home directory in the Intellij IDE, but I need the java-1.17
Also did this with JAVA_HOME and attempted sudo apt-get install java-1.17.0-openjdk-devel
but no package found.