Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

You 'll find a lot of dependencies that make your life difficult. To see a list of dependencies

$> rpm -e --test java-<java-version>-openjdk

You can removing the package by 'force'. Then use 'alternatives' (in /usr/sbin) to redirect java to Oracle JDK (ditto for javac, jar,...), see also 'man alternatives'. But every update of 'openjdk' will undo this. Moreover this is not my recommendation.

I suggest you install both and initialise the variable 'JAVA_HOME' for the applications that require Oracle JDK and launch java with $JAVA_HOME/bin/java (ditto for javac, jar, ...). I thus work with Java 8 (Oracle JDK) and Java 1.7 (OpenJDK). Another note: I downloaded the TAR package of Oracle SDK and not the rpm version. But maybe this works just as well.

You 'll find a lot of dependencies that make your life difficult. To see a list of dependencies

$> rpm -e --test java-<java-version>-openjdk

You can removing the package by 'force'. Then use 'alternatives' (in /usr/sbin) to redirect java to Oracle JDK (ditto for javac, jar,...), see also 'man alternatives'. But every update of 'openjdk' will undo this. Moreover this is not my recommendation.

I suggest you install both and initialise the variable 'JAVA_HOME' for the applications that require Oracle JDK and launch java with $JAVA_HOME/bin/java (ditto for javac, jar, ...). I thus work with Java 8 (Oracle JDK) and Java 1.7 (OpenJDK). Another note: I downloaded the TAR package of Oracle SDK and not the rpm version. But maybe this works just as well.

You 'll find a lot of dependencies that make your life difficult. To see a list of dependencies

$> rpm -e --test java-<java-version>-openjdk

You can removing the package by 'force'. Then 'force', but not recommended. Or install both and use 'alternatives' (in /usr/sbin) to redirect java to Oracle JDK (ditto for javac, jar,...), see also 'man alternatives'. But every update of 'openjdk' will undo this. Moreover And again this is not my recommendation. recommendation.

I suggest you install both and initialise the variable 'JAVA_HOME' for the applications that require Oracle JDK and launch java with $JAVA_HOME/bin/java (ditto for javac, jar, ...). I thus work with Java 8 (Oracle JDK) and Java 1.7 (OpenJDK). Another note: I downloaded the TAR package of Oracle SDK and not the rpm version. But maybe this works just as well.