Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Console out put message(Added message in console when java application run)
icon4.gif  Console out put message [message #1702848] Sun, 26 July 2015 06:12 Go to next message
Brian Rutherford is currently offline Brian RutherfordFriend
Messages: 3
Registered: July 2015
Junior Member
Short piece of learners code:

public class MyFirstJavaClass {

/**
* @param args
*/
public static void main(String[] args) {
System.out.println("Chocolate, royalties, sleep");

}

}
Console output:

Picked up JAVA_TOOL_OPTIONS: -javaagent:/usr/share/java/jayatanaag.jar
Chocolate, royalties, sleep

It should only display Chocolate. royalties, sleep

What have I done wrong
Thank you
Brian
Re: Console out put message [message #1702863 is a reply to message #1702848] Sun, 26 July 2015 15:06 Go to previous messageGo to next message
Russell Bateman is currently offline Russell BatemanFriend
Messages: 3798
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

On 07/26/2015 12:43 AM, Brian Rutherford wrote:
> Short piece of learners code:
>
> public class MyFirstJavaClass {
>
> /**
> * @param args
> */
> public static void main(String[] args) {
> System.out.println("Chocolate, royalties, sleep");
>
> }
>
> }
> Console output:
>
> Picked up JAVA_TOOL_OPTIONS: -javaagent:/usr/share/java/jayatanaag.jar
> Chocolate, royalties, sleep
>
> It should only display Chocolate. royalties, sleep
>
> What have I done wrong
> Thank you
> Brian

In the Eclipse Console View, you mean?
Re: Console out put message [message #1702927 is a reply to message #1702863] Mon, 27 July 2015 12:09 Go to previous messageGo to next message
Brian Rutherford is currently offline Brian RutherfordFriend
Messages: 3
Registered: July 2015
Junior Member
Not in the console, but when I installed java or when I installed Eclipse.
History: previous computer died so replaced it, and installed ubuntu 15.04 amd 64 version
re-installed java and eclipse. Previous computer had 32 bit ubuntu installed and the out- put in the console was " Chocolate. royalties, sleep"
It did not include the text in Red "Picked up JAVA_TOOL_OPTIONS: -javaagent:/usr/share/java/jayatanaag.jar"
Re: Console out put message [message #1702984 is a reply to message #1702927] Mon, 27 July 2015 17:04 Go to previous messageGo to next message
Russell Bateman is currently offline Russell BatemanFriend
Messages: 3798
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

On 07/27/2015 06:09 AM, Brian Rutherford wrote:
> Not in the console, but when I installed java or when I installed Eclipse.
> History: previous computer died so replaced it, and installed ubuntu
> 15.04 amd 64 version
> re-installed java and eclipse. Previous computer had 32 bit ubuntu
> installed and the out- put in the console was " Chocolate. royalties,
> sleep"
> It did not include the text in Red "Picked up JAVA_TOOL_OPTIONS:
> -javaagent:/usr/share/java/jayatanaag.jar"

If this is the behavior in your operation system's console (terminal
window), then I'm struggling to see how it's an Eclipse question or how
you'll get an answer in this forum. Maybe I still misunderstand.
Re: Console out put message [message #1703161 is a reply to message #1702984] Wed, 29 July 2015 04:49 Go to previous messageGo to next message
Brian Rutherford is currently offline Brian RutherfordFriend
Messages: 3
Registered: July 2015
Junior Member
May I explain a little more fully, that is what I get in the Eclipse console, when I run that short piece of code that has been typed into the Eclipse editor. The first line in red text, with the second line being the correct output.
Picked up JAVA_TOOL_OPTIONS: -javaagent:/usr/share/java/jayatanaag.jar
Chocolate, royalties, sleep
Re: Console out put message [message #1703208 is a reply to message #1703161] Wed, 29 July 2015 11:44 Go to previous message
David Wegener is currently offline David WegenerFriend
Messages: 1445
Registered: July 2009
Senior Member
On 07/28/2015 11:49 PM, Brian Rutherford wrote:
> Picked up JAVA_TOOL_OPTIONS: -javaagent:/usr/share/java/jayatanaag.jar
This happens because the environment variable JAVA_TOOL_OPTIONS is set.
The JVM is printing this to stderr.

You need to unset the environment variable to prevent it from printing.

See:
http://stackoverflow.com/questions/26074446/picked-up-java-tool-options-javaagent-usr-share-java-jayatanaag-jar-when-st

http://stackoverflow.com/questions/30213807/how-to-suppress-picked-up-java-tool-options-javaagent-usr-share-java-jayatan

https://community.oracle.com/thread/1239778?start=0&tstart=0
Previous Topic: Where is the resources section now that was in this site now?
Next Topic:open and run saved java program
Goto Forum:
  


Current Time: Thu Apr 18 11:43:26 GMT 2024

Powered by FUDForum. Page generated in 0.03134 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top