Archives For java

This quick tutorial is going to show you how to install the IntelliJ IDEA IDE, both community and ultimate editions, via PPA in all current Ubuntu releases.

IntelliJ IDEA is a Java IDE developed by JetBrains. So far the latest is version 2017.1.5 that was released more than a week ago with some bug-fixes and performance updates.

intelliJ IDEA ultimate

While the official Linux binaries lack application launcher integration, Marcel Kapfer made an installer script that automatically downloads the source tarball from JetBrains server, installs it to /opt/, and finally creates an app launcher.

Install the script:

For all current Ubuntu releases, including Ubuntu 14.04, Ubuntu 16.04, Ubuntu 16.10, Ubuntu 17.04, and derivatives, I’ve made the new script into PPA since the original maintainer does not update the latest release at the moment.

Download the latest script from the link below:

intellij-idea-community_2017.1.5-1_all.deb (community version)

intellij-idea-ultimate_2017.1.5-1_all.deb (ultimate edition)

Then open terminal via Ctrl+Alt+T or by searching for it from app launcher, and run command to install the script:

sudo dpkg -i ~/Downloads/intellij-idea-community_*_all.deb

replace community in the command with ultimate for ultimate version.

Once installed, launch the IDE from your app launcher and enjoy!

For those who want to upgrade the IDE through Software Updater (Update Manager), add the PPA repository via command:

sudo add-apt-repository ppa:mmk2410/intellij-idea

OpenJDK Java 8

OpenJDK Java 8 has been made into official Ubuntu repositories for 14.10 Utopic and higher. For Ubuntu 14.04, Ubuntu 12.04, and Linux Mint 17 users here’s how to install it from PPA.

OpenJDK 8 was released in March 2014. It’s available in Ubuntu Software Center for Ubuntu 14.10 and Ubuntu 15.04. Someone has reported in launchpad asking for packaging openjdk-8 in Ubuntu 14.04, but no luck so far.

As a workaround, you can install OpenJDK 8 from a PPA repository:

1. Open terminal from the Dash or by pressing Ctrl+Alt+T. When it opens, run the command below to add PPA:

sudo add-apt-repository ppa:openjdk-r/ppa

OpenJDK 8 PPA

Type in user password when it asks and hit Enter to continue.

2. After that, update system package cache and install OpenJDK 8:

sudo apt-get update 

sudo apt-get install openjdk-8-jdk

3. If you have more than one Java versions installed on your system. Run below command set the default Java:

sudo update-alternatives --config java

Type in a number to select a Java version.

set default java version

And set default Java Compiler by running:

sudo update-alternatives --config javac

4. Finally check out current Java version by running:

java -version

It outputs something like this:

openjdk version "1.8.0_01-internal"
OpenJDK Runtime Environment (build 1.8.0_01-internal-b04)
OpenJDK 64-Bit Server VM (build 25.40-b08, mixed mode)

This simple tutorial is going to show you how to install Oracle Java (JDK) 8, Oracle Java (JDK + JRE) 7 or Oracle Java (JDK) 6 on Ubuntu 13.10 Saucy Salamander and Linux Mint.

The Webupd8 Team created a ppa repository to make it easy to install Oracle Java for Ubuntu and Linux Mint users. So far, the ppa contains Java 6, 7, 8 installer for Ubuntu 13.10 Saucy, 13.04 Raring, 12.10 Quantal, and 12.04 Precise.

Press Ctrl+Alt+T to open terminal, follow the below steps to get started:

1.) If you’ve already installed OpenJDK in Ubuntu Software Center. Remove it by running this command:

sudo apt-get purge openjdk*

2.) To add the ppa, run:

sudo add-apt-repository ppa:webupd8team/java

Then update:

sudo apt-get update

3.) To install Oracle Java 8:

sudo apt-get install oracle-java8-installer

To install Oracle Java 7:

sudo apt-get install oracle-java7-installer

To install the Java 6:

sudo apt-get install oracle-java6-installer

About Webupd8