A
A
Alexander Interesting2021-07-02 10:56:30
linux
Alexander Interesting, 2021-07-02 10:56:30

How to replace java 11 with java 8 in debian?

When I type "java -version" into the terminal, it says openjdk 11, but I have the 8th java. How can I replace the 11th Java with the eighth?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Sand, 2021-07-02
@Swimergg

sudo update-alternatives --config java

O
Orkhan, 2021-07-02
Hasanly @azerphoenix

I agree with my colleague Sand , I will only note that on linux it is much more convenient to use sdkman. With it, you can quickly switch between the desired versions and install the versions you need
https://sdkman.io/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question