rilian-la-te/java-swing-ayatana

The line "Picked up JAVA_TOOL_OPTIONS: -javaagent:/usr/share/java/jayatanaag.jar" is echoed into the terminal after running any .java file

GoogleCodeExporter opened this issue · 5 comments

What steps will reproduce the problem?
- To run a .java file.


What is the expected output? What do you see instead?
- Expected: none.
- Real: "Picked up JAVA_TOOL_OPTIONS: -javaagent:/usr/share/java/jayatanaag.jar"


What version of the product are you using? On what operating system?
- Version: 2.7
- Operating system: Ubuntu 15.04


Please provide any additional information below.
- Launchpad report: 
<https://bugs.launchpad.net/ubuntu/+source/jayatana/+bug/1452844>.


Original issue reported on code.google.com by es204904...@gmail.com on 19 May 2015 at 11:21

This renders plenty of Java applications unusable, while shell-scripts pointing 
to Java files doesn't work.

Original comment by es204904...@gmail.com on 7 Jun 2015 at 3:32

Sorry,

By support Global Menu, It's necessary inject some code, for the moment the 
only way that I can found, It using the java agents. And using the environment 
variable JAVA_TOOL_OPTIONS.

Do you have a crash in some java application?

Original comment by danjaredg on 8 Jun 2015 at 5:43

  • Changed state: Accepted
One example:
Try build Android - in some very early script it checks java version: it parses 
first line after running "java -version" and it of course fails because of this 
message. 

Original comment by Vaclav.L...@gmail.com on 8 Jun 2015 at 9:22

Failure seems also very frequent when, for example, a Java application depends 
on a shell-script to run.

Original comment by es204904...@gmail.com on 8 Jun 2015 at 10:50

In a terminal IBM Java 6 64-bit crashes with segv when running "java -version"
If JAVA_TOOL_OPTIONS is unset in the terminal it executes fine

Original comment by awha...@gmail.com on 21 Jul 2015 at 9:59