I've been having an issue with Java since I installed Ubuntu and it has been the main reason I have stopped playing certain Java-based games such as Minecraft. You see, although I've downloaded OpenJDK 6 from the Software Center, Ubuntu refuses to recognize that I do in fact have it installed. When I type java -version
into the terminal, the following pops up:
The program 'java' can be found in the following packages:
* default-jre
* gcj-4.6-jre-headless
* gcj-4.7-jre-headless
* openjdk-7-jre-headless
* openjdk-6-jre-headless
Try: sudo apt-get install <selected package>
Giving it the benefit of the doubt, I tried installing these as well. Unfortunately, java -version
continues to present me this same exact message every time. Also, just to make sure the terminal wasn't drunk, I checked Minecraft.jar>Properties>Open With and OpenJDK 6 was, unsurprisingly, not available from the list.
Edit: Here are the results of dpkg -l | grep jdk
:
ii openjdk-6-jre:i386 6b27-1.12.6-1ubuntu0.12.10.2 i386 OpenJDK Java runtime, using Hotspot JIT
ii openjdk-6-jre-headless:i386 6b27-1.12.6-1ubuntu0.12.10.2 i386 OpenJDK Java runtime, using Hotspot JIT (headless)
ii openjdk-6-jre-lib 6b27-1.12.6-1ubuntu0.12.10.2 all OpenJDK Java runtime (architecture independent libraries)
ii openjdk-7-jre:i386 7u21-2.3.9-0ubuntu0.12.10.1 i386 OpenJDK Java runtime, using Hotspot JIT
ii openjdk-7-jre-headless:i386 7u21-2.3.9-0ubuntu0.12.10.1 i386 OpenJDK Java runtime, using Hotspot JIT (headless)
ii openjdk-7-jre-lib 7u21-2.3.9-0ubuntu0.12.10.1 all OpenJDK Java runtime (architecture independent libraries)
dpkg -l | grep jdk
.