How to suppress the “picked up java_tool_options: – javaagent: / usr / share / Java / jayatanaag. Jar” message
•
Java
I use Ubuntu 15.04 and Java 1.7 After updating to 15.04, whenever I enter any Java command, I will receive the following message:
Picked up JAVA_TOOL_OPTIONS: -javaagent:/usr/share/java/jayatanaag.jar
For example:
hduser@ubuntu:~$java -version Picked up JAVA_TOOL_OPTIONS: -javaagent:/usr/share/java/jayatanaag.jar java version "1.7.0_21" Java(TM) SE Runtime Environment (build 1.7.0_21-b11) Java HotSpot(TM) 64-Bit Server VM (build 23.21-b01,mixed mode)
How can I restrain this behavior?
Solution
I also upgraded to Ubuntu 15.04 and have the same problem (although I don't think it's a problem)
$echo $JAVA_TOOL_OPTIONS -javaagent:/usr/share/java/jayatanaag.jar $apt-cache search jayatana jayatana - Java Native Library for ayatana project
From this output, I can conclude that ayatana tries to attach its proxy to all started java code
Ubuntu wiki says
So, it looks like this application is an additional agent to ensure application stability or something like this
The simple way to eliminate this variable is only in ~ / Unset in profile:
$echo unset JAVA_TOOL_OPTIONS >>~/.profile
But this looks more like a workaround. If you are sure you don't need this application, you can delete it completely:
$sudo apt-get remove jayatana
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
二维码