Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I've had the archive file for Oracle's JDK for some time and have been running java applications through ~/Downloads/jdk1.7.0/bin/java -jar <jarfile> for some time, but I'm wondering if there's an actual way to "install" the JDK without running through the fiasco with apt-get that I ran into with a previous installation. Also, can I point IcedTea's Applet launcher to the Oracle VM vs the OpenJDK one?

share|improve this question
    
Check this: askubuntu.com/questions/55848/… –  lordqwerty Oct 11 '12 at 19:23
add comment

2 Answers

Check out http://www.wikihow.com/Install-Oracle-Java-on-Ubuntu-Linux for a complete step by step solution.

share|improve this answer
2  
Welcome to Ask Ubuntu! Whilst this may theoretically answer the question, it would be preferable to include the essential parts of the answer here, and provide the link for reference. –  Braiam Aug 25 '13 at 3:59
add comment

Follow these instructions to add the source to your repositories.

In a terminal run:

  • sudo apt-get update
  • sudo apt-get install update-sun-jre
  • sudo update-alternatives --config firefox-javaplugin.so and select the one that's in /opt (This enables Sun Java in Firefox)

With this package you don't have to worry about constantly checking for updates. The maintainer takes good care to keep it current for you. It also adds all the update-alternatives links for you, so it's a lot less work than the above comment on your question.

share|improve this answer
    
Thanks for the edit Emre ;). Sometimes I get all excited and type too fast for my own good. –  Githlar Oct 11 '12 at 21:26
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.