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

I've run into an error in Workspace and I don't how to fix it, please help

Every time I run a file I get a this message: Picked up JAVA_TOOL_OPTIONS: -Xmx128m Picked up _JAVA_OPTIONS: -Xmx128m

2 Answers

Im unable to attach a picture to show you the actual problem. Basically anytime I run a file I get that message and then the file runs. Even when I make simple codes like printing "Hello World" the message appears.

How'd do you get rid of it?

Hello Nathan I didnt get a reply back, I'm just curious why is the message popping up when I run my code because in the past this never happened?

public class Example {

public static void main(String[] args){

System.out.println("We are making a new Pez Dispenser");

PezDispenser dispenser = new PezDispenser();
System.out.printf("The Pez dispenser head is %s\n", dispenser.mCharacterName);

} }

This is my code for my Example.java file

public class PezDispenser{

public String mCharacterName = "Yoda";

}

This is my code for my Pezdispenser file

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

Hi Allen,

This message is just informational, it's something the JVM prints out on start-up when it detects that environment variable set; it does not impact your code at all, and is due to a recent tweak we made to Workspaces to prevent Java from running out of memory inside Workspaces.