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 Strings and Variables

Nathan Huls
Nathan Huls
5,709 Points

Error: 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 Nate\n");
    console.printf("Nate is learning how to write Java\n");

} }

4 Answers

Craig Dennis
STAFF
Craig Dennis
Treehouse Teacher

Don't worry not an error, we've just given Java more memory recently to speed up your experiences!

Nathan Huls
Nathan Huls
5,709 Points

Quick response! Thanks Craig!!

osvaldo gonzalez
osvaldo gonzalez
2,167 Points

yes I worry becasue desite I saved it I continue with the next Issue in console; treehouse:~/workspace$ javac Introductions.java
Picked up JAVA_TOOL_OPTIONS: -Xmx128m
treehouse:~/workspace$ java Introductions.java
Picked up JAVA_TOOL_OPTIONS: -Xmx128m
Error: Could not find or load main class Introductions.java
treehouse:

Okay but how do you know if the code you're typing is correct if the output is always Picked up JAVA_TOOL_OPTIONS: -Xmx128m?????????????????

Aditya Puri
Aditya Puri
1,080 Points

so you upgraded your memory usage recently?

Craig Dennis
Craig Dennis
Treehouse Teacher

Your output will come below. Make sure you are saving.

i am saving and whenever i compile i get the same error or message not my output :( i even opened a new workspace

Craig Dennis
Craig Dennis
Treehouse Teacher

Can you make a workshop snapshot for me Jennifer? I'll track down the bug!

Craig Drummond
Craig Drummond
933 Points

Hi Craig,

Is there a way to hide that output, so we don't have to see it before the output of our own program. It just feels a little clumsy to have to see that message every time. Thanks!

Craig Dennis
Craig Dennis
Treehouse Teacher

Working on it! Will keep you posted. It's part of the JDK unfortunately. https://bugs.openjdk.java.net/browse/JDK-8039152 (here it is closed with won't fix) there might be a workaround.