How do I swap sun java for openjdk on OpenSuse 11.3 64-bit?
I'd like to do this as I've often encountered problems with OpenJDK. I need to have full java support in my computer.
on 07/26/2010 – Made popular on 07/26/2010
I searched askubuntu and tried the suggestions but failed .I try this question:How to completely uninstall/reinstall Java
1.I run sudo apt-cache search openjdk get the following:
openjdk-6-dbg - Java runtime based on OpenJDK (debugging symbols)
openjdk-6-demo - Java runtime based on OpenJDK (demos and examples)
openjdk-6-doc - OpenJDK Development Kit (JDK) documentation
openjdk-6-jdk - OpenJDK D
I have recently installed openjdk just to try out writing some java application
$ dpkg -l | grep jdk
ii openjdk-7-jdk 7u7-2.3.2a-0ubuntu0.12.04.1 OpenJDK Development Kit (JDK)
ii openjdk-7-jre 7u7-2.3.2a-0ubuntu0.12.04.1 OpenJDK Java runtime, using Hotspot JIT
ii openjdk-7-jre-headless 7u7-2.3.2a-0ubuntu
$ pkgfile /usr/lib/jvm/java-7-openjdk/jre/bin/java
extra/jre7-openjdk-headlessDo you have jre7-openjdk-headless installed? It is a dependency for jre7-openjdk so I don't know why you don't have this file, try reinstalling jre7-openjdk-headless.