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