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 read a lot that Java 6 works better and that it's not recommended to use Java 7, is this true? And why is Java 7 not a good option?

share|improve this question
add comment

2 Answers 2

up vote 10 down vote accepted
  • Yes, it's perfectly OK to install Java 7 on Ubuntu. In fact, you can install and use multiple versions of Java, from multiple vendors, at the same time!

  • The reasons some don't recommend Java 7 as a replacement for Java 6 yet, for end-users, include:

    • Java 7 is still relatively new and "maturing"
    • Most of the Java apps/code out there was written for Java 6 and works perfectly with it
    • Java 7 should be able to run the above too, but rarely there's a bug and it fails or causes problems.
  • As this link from May 2012 explains, while Java 7 has been available for developers since mid-2011, Oracle only started upgrading Windows users to Java 7 in May 2012, and it is still offering and recommending Java 6 to Linux and Mac users.

  • Bottom-line: if you are a developer, get Java 7. If you are a user, you can get it too but keep Java 6 around. This question explains how you can install multiple Java versions and use a graphical utility to chose which is the "default" Java

share|improve this answer
add comment

Java 7 work great. I've been running it for at least 2 months, and no problems. To install Oracle Sun Java, Just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, run the commands below.

sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java7-installer

For Open JDK

sudo apt-get install openjdk-7-jre

Or from Ubuntu Software Center

share|improve this answer
    
Could you explain the difference between the 3 and which would be better for Ubuntu 12.04? I've used Oracle's one previously on Windows but if you're able to I'd be interested in knowing upsides/downsides to each of them if there are any. (eg. more regular updates or better support on Linux are just 2 examples) –  user77358 Jul 18 '12 at 10:17
2  
The last 2 are the same. One is done from terminal, and the other from software center. The top one is the Oracle Sun version of Java. You can run them side by side. To get an idea see Why should I use the Oracle JDK over the OpenJDK, or vice-versa? –  Mitch Jul 18 '12 at 10:39
    
Thanks a lot for the explanations and the link! Sorry for the pointless question I was kind of slow and didn't remember yesterday that USC = Ubuntu Software Centre... –  user77358 Jul 19 '12 at 13:30
    
this worked great! tyvm! –  ErocM Oct 16 '12 at 19:04
add comment

Your Answer

 
discard

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