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

Rafal Sienko
Rafal Sienko
315 Points

Picked up JAVA_TOOL_OPTIONS: -Xmx128m

When I compile my code I get

Picked up JAVA_TOOL_OPTIONS: -Xmx128m
Picked up _JAVA_OPTIONS: -Xmx128m

Work Space

1 import java.io.Console;

2

3 public class Introductions {

4

5 public static void main(String[] args) {

6 Console console = System.console();

7 // Welcome to the Introductions program! Your code goes below here

8 console.printf("hey") ;

9 }

10 }

Console

treehouse:~/workspace$ javac Introductions.java
Picked up JAVA_TOOL_OPTIONS: -Xmx128m
Picked up _JAVA_OPTIONS: -Xmx128m
treehouse:~/workspace$ java Introductions
Picked up JAVA_TOOL_OPTIONS: -Xmx128m
Picked up _JAVA_OPTIONS: -Xmx128m
treehouse:~/workspace$

Am I doing it wrong or do I need to unsub cuz it's broken?

1 Answer

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

Hi Rafal! You absolutely do not need to unsubscribe! It's not broken and you've done nothing wrong. It's simply an informational message about something they've implemented to keep the JVM from taking up too many resources.

You can find a staff member explaining it on this thread.

Hang in there and keep coding! :sparkles:

edited for additional note

I've also seen somewhere in the Teacher's notes of a video with Craig Dennis mentioning it, I believe. But I'm having a hard time locating it right now.