5

I am starting to learn Java. After I run my code, I get some additional lines along with the expected output. Can someone please tell me what they mean?

My Code:

public class HelloWorld
{
    public static void main(String[] args)
    {
        System.out.println("Hello World!!!");
    }
}

Output:

Picked up JAVA_TOOL_OPTIONS: -agentlib:jvmhook
Picked up _JAVA_OPTIONS: -Xrunjvmhook -Xbootclasspath/a:C:\PROGRA~2\HP\QUICKT~1\bin\JAVA_S~1\classes;C:\PROGRA~2\HP\QUICKT~1\bin\JAVA_S~1\classes\jasmine.jar
Hello World!!!

Thanks for your help!

Arya McCarthy
  • 8,554
  • 4
  • 34
  • 56
user3062593
  • 51
  • 1
  • 1
  • 2

1 Answers1

4

That will happen if the environment variables JAVA_TOOL_OPTIONS or _JAVA_OPTIONS are set. If you don't need them I suggest not setting them. If you are running it in Eclipse then I'd look into the "Run Configuration" or Eclipse's configuration. There is, per this SO question, no way of suppressing these messages if these variables are set, apparently.

Community
  • 1
  • 1
dcsohl
  • 7,186
  • 1
  • 26
  • 44
  • Thanks for your response. I just realized that one of the tools that I have installed on the machine needs to set those two environment variables. I can't remove those as they are being used by that tool. Is there a way I can prevent their display in my output? – user3062593 Dec 03 '13 at 18:17