Ubuntu 12.04, RubyMine, Java Problem and the Fix
Ubuntu 12.04 was released, before upgrading any computers, I always test it out in a virtual machine to ensure my critical development tools work as expected. With Ubuntu 12.04, I found that I could not get the Java6 JDK installed or working. This is required for running RubyMine, my tool of choice.
The previous approaches do not work.
The solution is thankfully easy.
Solution
Following the links on the last-best working approach, there is a link to the Flexion.org blog. The post “Install Sun Java 6 JRE and JDK from .deb packages” explains why it is broken (Canonical disabled it for violating Oracle’s license) and explains his clever workaround solution.
Run this Script
This following script pulls code from the Github project “oab-java6” to locally create .deb packages and a local package repository. After running the script, you can use apt-get or synaptic to install “sun-java6-jdk”.
cd ~/ wget https://raw.github.com/flexiondotorg/oab-java6/master/oab-java6.sh -O oab-java6.sh chmod +x oab-java6.sh sudo ./oab-java6.sh
Kudos to Flexion.org for the good work and nice solution.