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

I get this error now when compiling and or running java It broke and I know because I am using the built in console workspace I probably cannot fix this and Treehouse needs to? Let me know! I am currently downloading the JDK and will do this on my laptop, but I like using workspaces.

5 Answers

Nathan Williams
seal-mask
.a{fill-rule:evenodd;}techdegree
Nathan Williams
Python Web Development Techdegree Student 6,851 Points

This isn't an error, it's an informational message from the JVM about an option we enabled in Workspaces to help prevent the JVM from snagging too much RAM and killing user processes. You can just ignore that line in the output.

Jonathan Ruiz
Jonathan Ruiz
1,355 Points

Hi, I get the same problem, and i cant compile and run anything because it always comes up that thing, and i installed netbeans 8.1 on my mac but don't know how to use it, please help!

Jose Aguirre
Jose Aguirre
14,866 Points

Line is ignored, but program will not compile, thus program will not run.

Nathan Williams
seal-mask
.a{fill-rule:evenodd;}techdegree
Nathan Williams
Python Web Development Techdegree Student 6,851 Points

hey john,

that's exactly right. there's no problem with changing that, but be aware that if the process consumes too much memory, it will be killed by the operating system's OOM-killer. we set the 128M as a sane default to prevent this, and it's more than adequate for all of the tasks we have students working on as part of their coursework.

cheers,

nathan

John Marley
John Marley
8,740 Points

I came across an error like this when trying to mod Minecraft (and proud of it)

It is to do with how much memory Java is allocated. The Xmx-128 has to do with the heap space.

I highly recommend Treehouse's workspace and I hope I am not breaching any terms and conditions with this fix: the following should help you to increase the java heap space.

http://www.wikihow.com/Increase-Java-Memory-in-Windows-7

shay elbaz
shay elbaz
2,885 Points

but I goy this problem on Mac my friend

I'm having the same issue using the Workspace

How do you get it to compile in Treehouse Workspaces when you're receiving Picked up JAVA_TOOL_OPTIONS: - Xmx128m and Picked up JAVA_OPTIONS: - Xmx128m?