I deleted the built-in Java from Ubuntu a few days ago, and finally encountered the problem of PickedupJAVA_TOOL_OPTIONS during installation. After searching for it online, I finally succeeded. The following will download the experience for your convenience. If you have installed OpenJDK In the Ubuntu Software Center, run the following command to delete it: sudoapt-getpurgeopenjdk * add source and update sudoadd-apt-reposit
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:
Linuxidc @ 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)
Ubuntu 14.04 install JDK1.8.0 _ 25 and configure the environment variable http://www.linuxidc.com/Linux/2015-01/112030.htm
Build JDK environment http://www.linuxidc.com/Linux/2015-06/118879.htm with CentOS
Install JDK 1.8.0 _ 25 on Ubuntu 14.04 and configure Environment VariablesHttp://www.linuxidc.com/Linux/2015-01/112030.htm
Ubuntu 14.04 LTS install Oracle JDK 1.8 http://www.linuxidc.com/Linux/2014-11/109216.htm
CentOS6.3 install JDK and environment configuration http://www.linuxidc.com/Linux/2012-09/70780.htm
Ubuntu 14.04 install JDK8 http://www.linuxidc.com/Linux/2014-09/106218.htm
Install JDK graph analysis http://www.linuxidc.com/Linux/2014-09/107291.htm under Ubuntu
For more information about Ubuntu, see Ubuntu special page http://www.linuxidc.com/topicnews.aspx? Tid = 2
This article permanently updates the link address: Http://www.linuxidc.com/Linux/2015-10/123748.htm