Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Java Java Basics Getting Started with Java Introduction to Your Tools

Picked up JAVA_TOOL_OPTIONS: -Xmx128m?

import java.io.Console;

public class Introductions {

public static void main(String[] args) {
    Console console = System.console();
    // Welcome to the Introductions program!  Your code goes below here
  console.printf ("Hello, my name is Abhishek!");

} }

after executing these commands the result was:

treehouse:~/workspace$ java Introductions Picked up JAVA_TOOL_OPTIONS: -Xmx128m Picked up _JAVA_OPTIONS: -Xmx128m Hello, my name is Abhishek! treehouse:~/workspace$

I did not understand what the 'Picked up JAVA_TOOL_OPTIONS: -Xmx128m' meant, this sentence did not appear in my teachers workspace.

2 Answers

Jennifer Nordell
seal-mask
STAFF
.a{fill-rule:evenodd;}techdegree
Jennifer Nordell
Treehouse Teacher

Hi there! I received your request for assistance. Not to fear... this is not an error. It's just an informational message about some options set in the JVM about memory usage.

Here are a couple of posts by Treehouse staff where they elaborate on this:

Hope this helps! :sparkles:

Thank you so much Jennifer Nordell, your answer helped me!

Katie Ferencik
Katie Ferencik
1,775 Points

Is there any way to get it to stop doing this? Or is it something I'll have to deal with for forever while using Treehouse?

Thanks!