Can I have OpenJDK and OracleJDK and the same time?

Hi there

OpenJDK 1.8 is already installed on my system.

I need to install OracleJDK 1.8.

Should I remove OpenJDK and then install OracleJDK?

What if I install both?

you need both (the reason is an old silly bug in oracle’s rpm)

I installed Oracle-JDK rpm file by :

sudo zypper in jdk-8u25-linux-x64.rpm

But, How can I change default JDK to OracleJDK ?

Still OpenJDK is default JDK.

With “update-alternatives”.

See .