Can use openjdk instead of oracle java in Debian?

Potasto7 years ago

Hi.

I have Debian Buster, i'm trying to install, but all times (root and user) says that need JAVA 7 of higher.
/usr/bin/java
Java 7 or higher is required

This is the JAVA that I currently have in my machine:

  • 0 /usr/lib/jvm/java-9-openjdk-amd64/bin/java 1091 modo automático
    1 /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java 1081 modo manual
    2 /usr/lib/jvm/java-9-openjdk-amd64/bin/java 1091 modo manual

Java is correctly installed because i can run 'java -jar tracker-server.jar conf/traccar.xml' but i didn't configure the server manually.

Anton Tananaev7 years ago

The problem is likely with Java 9. Make sure Java 8 is the default one.

Potasto7 years ago

Its true, with JAVA 8 as default I have installed ok.

If anyone have the same problem only need to put:
update-alternatives --config java

And select the java-8 package.