Ubuntu / Linux news and application reviews.

How To Install Oracle Java 7 (JDK) In Ubuntu

As you probably know, Oracle Java (JVM/JDK) will not be available in the Debian / Ubuntu repositories anymore because Oracle retired the "Operating System Distributor License for Java" (JDL) and the only release available in the repositories will be OpenJDK.

But of course, Oracle Java can still be downloaded from its website if you really need it and don't want to use OpenJDK:

Java (JDK) Updater - Script To Update The Java (JDK) Paths After Manual Installation

Ubuntu is kind of slow at updating JDK in the official repositories. And not only that but if you've used Ubuntu 10.10 Maverick Meerkat before the final release, you probably know that Java has only been uploaded to the Ubuntu Partner repository a few days before the final release so you could either use the Ubuntu 10.04 repository or manually install Java.

When you manually install JDK, you have to update the paths to get it to work. For this, you can use a script created by WebUpd8 reader Bruce Ingalls (this is actually a new version as we've already wrote a while back about this script) which uses Zenity and can easily update the Java (JDK) paths - all you have to do is select the folder where you've installed Java and the script will do the rest.

Install Java In Ubuntu 11.04 Natty Narwhal Via Repository

I've upgraded to Ubuntu 11.04 on my netbook a while back and as usual, I can't install Java the "official" way because the Ubuntu 11.04 Partner repository is not yet ready (it's usually available once the final Ubuntu version is released).

So what are the options for installing Java in Ubuntu 11.04 if you upgrade before the final version is released? You can download it from its website and install it manually and/or use the JDK updater script provided by Bruce Ingalls - but there are actually 2 much easier to use alternatives. Read on!

JDK Linux Update Script

WebUpd8 reader Bruce Ingalls sent us script which should make it easy for users to upgrade JDK. The script doesn't download JAVA or install it, but after you do that it updates the the path to the new JDK location.

Why use it?

Well, for instance JDK 1.6.0_19 was recently released and instead of creating symbolic links after installing it (which is not the recommended way to do it), you can use this script.

Install Oracle Java 7 in Ubuntu Or Linux Mint Via PPA Repository

Update: Java 7 is no longer supported by Oracle. The binaries are no longer available for download, but if you have an Oracle account, you can still download it after logging in. Install the latest Oracle Java 17 LTS from PPA instead.

The Oracle Java 7 installer in this article will continue to work only if you manually download Oracle JDK 7 (version 7u80 for 32bit and 64bit or 7u60 for arm), place it in the /var/cache/oracle-jdk7-installer/ folder on your computer, then install "oracle-java7-installer" as explained below in this article.

---------------------------------------------------------------------------

We've previously written about installing Oracle JDK 7 in Ubuntu using a script with a GUI provided by Zenity. Some may find this method hard to use and also, it comes with GTK dependencies. So as an alternative that doesn't have any GTK dependencies and comes with automatic updates too, I've set up an Ubuntu PPA for the latest Oracle Java 7 (JDK). The PPA should work not only with Ubuntu but also Linux Mint and other Ubuntu-based Linux distributions.

If you really need to use Oracle (ex Sun) Java instead of OpenJDK in Ubuntu, here's an easy way to do it: a PPA repository to install and keep your computer up to date with the latest Oracle Java 7 (Java JDK which includes JRE).

oracle java

Oracle JDK7 itself is not hosted in the PPA because that's not allowed by the new Java license (which is also the reason why it has been removed from the official Ubuntu repositories); the package in the PPA automatically downloads Oracle Java JDK 7 from its official website and installs it on your Ubuntu / Linux Mint computer, just like the flashplugin-installer package does.


Oracle Java 7 Update 40 (7u40) Released, Ubuntu PPA Updated

Quick update: Oracle has released Java 7 Update 40 (7u40) today and the new version is available in the WebUpd8 Java PPA, for Ubuntu and Debian users.

Oracle Java 7u40

Install Oracle Java 8 In Ubuntu Or Linux Mint Via PPA Repository [JDK8]

The Oracle JDK License has changed for releases starting April 16, 2019.

The new Oracle Technology Network License Agreement for Oracle Java SE is substantially different from prior Oracle JDK licenses. The new license permits certain uses, such as personal use and development use, at no cost -- but other uses authorized under prior Oracle JDK licenses may no longer be available. Please review the terms carefully before downloading and using this product. An FAQ is available here.

Oracle Java downloads now require logging in to an Oracle account to download Java updates, like the latest Oracle Java 8u211 / Java SE 8u212. Because of this I cannot update the PPA with the latest Java (and the old links were broken by Oracle).

For this reason, THIS PPA IS DISCONTINUED (unless I find some way around this limitation).

Oracle Java 8 is now stable. Below you'll find instructions on how to install it in Ubuntu / Linux Mint via a PPA repository. The PPA supports JDK8 for both 32bit and 64bit as well as ARM (ARM v6/v7 Hard Float ABI - there's no JDK 8 ARM Soft Float ABI archive available for download on Oracle's website).

How To Install Oracle Java 8 In Debian Via Repository [JDK8]

The Oracle JDK License has changed for releases starting April 16, 2019.

The new Oracle Technology Network License Agreement for Oracle Java SE is substantially different from prior Oracle JDK licenses. The new license permits certain uses, such as personal use and development use, at no cost -- but other uses authorized under prior Oracle JDK licenses may no longer be available. Please review the terms carefully before downloading and using this product. An FAQ is available here.

Oracle Java downloads now require logging in to an Oracle account to download Java updates, like the latest Oracle Java 8u211 / Java SE 8u212. Because of this I cannot update the PPA with the latest Java (and the old links were broken by Oracle).

For this reason, THIS PPA IS DISCONTINUED (unless I find some way around this limitation).

Oracle Java 8 was released yesterday and it can be installed in Debian by using the WebUpd8 Java PPA repository.

Usually, the packages available in Launchpad PPAs don't support Debian because they are built against specific Ubuntu libraries, but since the WebUpd8 Oracle Java PPA contains just an installer, it works on Debian too.

Oracle Java PPA Updated With ARM Support

Java ARM

Starting today, both Oracle Java 7 and Java 8 (JDK) installers available in the WebUpd8 Java PPA support ARM.

Why Oracle Java 7 And 6 Installers No Longer Work

Oracle Java


Because I've received more than 50 emails about this, I though I'd make a post about it, to clear things up for everybody.

While Oracle Java 6 and 7 are not supported for quite a while, they were still available for download on Oracle's website until recently.

How To Install Oracle Java 7 In Debian Via Repository

Update: Java 7 is no longer supported by Oracle. The binaries are no longer available for download, but if you have an Oracle account, you can still download it after logging in. 

The Oracle Java 7 installer in this article will continue to work only if you manually download Oracle JDK 7 (version 7u80 for 32bit and 64bit or 7u60 for arm), place it in the /var/cache/oracle-jdk7-installer/ folder on your computer, then install "oracle-java7-installer" as explained below in this article.

---------------------------------------------------------------------------

A quick tip for Debian users who want to install and stay up to date with the latest Oracle Java 7 (JDK7): the WebUpd8 Java 7 PPA works on Debian too since the package is just an installer and all you have to do is manually add the PPA repository to the Software Sources.

Oracle Releases Updates For Java 7 (JDK 7u15) and 6 (JDK 6u41), PPA Updated

Oracle Java logo

Quick update: Oracle has released a Critical Patch Update for Java 6 (JDK 6u41) and 7 (JDK 7u15). Also, 6u41 is the last public Java 6 release and Oracle no longer recommends using it in production, so if you're using it, you should upgrade to Java 7.

Oracle (Sun) Java 6 Installer Available For Ubuntu And Debian Users [PPA]

Update: Java 6 is no longer supported by Oracle. The binaries are no longer available for download, but if you have an Oracle account, you can still download it after logging in. 

The Oracle Java 6 installer in this article will continue to work only if you manually download Oracle JDK 6 (version 6u45), place it in the /var/cache/oracle-jdk6-installer/ folder on your computer, then install "oracle-java6-installer" as explained below in this article.

---------------------------------------------------------------------------

As you know, we maintain a PPA repository which hosts Oracle Java 7 and 8 installers for Ubuntu and Debian users. WebUpd8 reader Eugene San has modified the package to install Oracle (Sun) Java 6, which is required for Android development, and he has asked us to upload it to our Java PPA.

So you can now install Oracle Java 6 (includes JDK and JRE) in Ubuntu or Debian using the WebUpd8 Java PPA repository.

oracle java 6 ubuntu

Things To Tweak After Installing Ubuntu 11.10 Oneiric Ocelot

Tux

Update: for Ubuntu 12.04, see: Things To Tweak After Installing Ubuntu 12.04 Precise Pangolin

Back when Ubuntu 11.04 was released, we wrote a post about stuff you may need to tweak or fix. Some of those tweaks still work but since this is a new version, there are new things that need tweaking so I've decided to make a new post with some popular old tweaks as well as some new ones.

Read on!

Oracle Java 8 (Stable) Released, Install it In Ubuntu

Oracle Java 8

Oracle has released Java 8 (stable) and the new version can already be installed by using the WebUpd8 Java PPA.

Oracle Releases Critical Security Update For Java 7 (7u13) and Java 6 (6u39), PPA Updated

oracle java vulnerability

Oracle has released updates for Java 7: 7u13 and Java 6: 6u39, which come with a Critical Patch Update for 50 new security issues, of which 49 could be used to execute code remotely, without authentication.

The updates were scheduled for February 19th, but because of the vulnerabilities affecting Java Runtime Environment (JRE) in browsers, Oracle has decided to accelerate their release, specially since some browsers have automatically blocked the Java browser plugin because of these security issues.

Java Update Script For Ubuntu - Version 0.2b

Bruce Ingalls sent us a new and much improved version of his Java Update script for Ubuntu. The script uses Zenity for a GUI so it's very easy to use.

Initially the script only updated JDK (which included JRE), but now can also update Java Runtime Environment separately.


Install Android Studio In Ubuntu Via PPA

Android Studio Ubuntu

Update September 2, 2014: Canonical released Ubuntu Developer Tools Center which can be used to easily install Android Studio and Android SDK in Ubuntu. That's the official, supported method of installing Android Studio in Ubuntu now!

Google provides Android Studio for Linux as a simple archive which you must download, extract, create your own launcher and so on.

To makes things easier, +Paolo Rotolo has created an Android Studio PPA for Ubuntu and derivatives (Linux Mint, elementary OS and so on).

Oracle Releases Java 7 Update 11 (7u11) To Fix Critical Security Vulnerability, Ubuntu PPA Updated

oracle java

Quick update: Oracle has released Java 7 update 11 which fixes a critical security vulnerability in update 10, so if you're using our PPA, update to the latest JDK 7u11 as soon as possible.

Oracle Releases Java 7 Update 25 (7u25) With 40 Critical Security Updates, Ubuntu PPA Updated

Quick update: Oracle has released Java 7 Update 25 and the new version is available in the WebUpd8 Oracle Java PPA, for Ubuntu and Debian users.

Oracle Java 7 7u25