Install JDK 8 in Ubuntu 15.04

Source: Internet
Author: User

Install JDK 8 in Ubuntu 15.04

I deleted the Java that comes with Ubuntu a few days ago, and finally encountered the problem of Picked up JAVA_TOOL_OPTIONS during installation. After searching for it online, I finally succeeded. Download the following experience for your convenience;
 
Jdk8 Installation

If you have installed OpenJDK In the Ubuntu Software Center, run the following command to delete it:
Sudo apt-get purge openjdk *

Add source and update
Sudo add-apt-repository ppa: webupd8team/java
Sudo apt-get update

Install java 8
Sudo apt-get install Oracle-java8-installer

The following error occurs when running java-version:
Picked up JAVA_TOOL_OPTIONS:-javaagent:/usr/share/java/jayatanaag. jar

My solution

I talked about a bunch of online ~ /. Add the unset JAVA_TOOL_OPTION statement to the bashrc file, and I will add it again. Finally, Google is better. I have encountered a method as follows:
Sudo rm/usr/share/upstart/sessions/jayatana. conf
Sudo add-apt-repository ppa: danjaredg/jayatana
Sudo apt-get update
Sudo apt-get install jayatana

Then it runs normally:
Bkjia @ peace :~ /Workspace $ java-version
Java version "1.8.0 _ 60"
Java (TM) SE Runtime Environment (build 1.8.0 _ 60-b27)
Java HotSpot (TM) 64-Bit Server VM (build 25.60-b23, mixed mode)

Install JDK 1.8.0 _ 25 on Ubuntu 14.04 and configure Environment Variables

Build a JDK environment using CentOS

Install JDK 1.8.0 _ 25 on Ubuntu 14.04 and configure Environment Variables

Install Oracle JDK 14.04 on Ubuntu 1.8 LTS

CentOS6.3 install JDK and environment Configuration

Install JDK 8 on Ubuntu 14.04

Install JDK graph analysis in Ubuntu

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.