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

amitha catherine
amitha catherine
1,489 Points

Unable to run the code in workspace

javac Introductions.java is throwing an error like : Picked up JAVA_TOOL_OPTIONS: -Xmx128m
Picked up _JAVA_OPTIONS: -Xmx128m

I am not able to run my code

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

Hi there! The lines you've posted here are not an error, but rather an informational message about memory options in the JVM. They appear for everyone using workspaces.

But they don't explain why your code isn't running. To help you troubleshoot this, we'll actually need to see your workspace. This is fairly easily accomplished by clicking the camera icon on the upper right-hand side of your workspace. It will create a link which you can post here. This will allow us to fork your workspace and have a look around :sparkles:

Robert Stamate
Robert Stamate
13,227 Points

I'm having the same issue.

Until this is fixed, is is possible to test out code in my local editor (ex: NetBeans)?

Best regards.

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

Robert Stamate your comment ideally would be left as a new question in the forums. I'm still unsure what the original poster of the question has problems with, but your code won't compile because of syntax errors. If you check the Oracle documentation, you'll see that print is not a valid method on the Console class. However, printf is. You've acidentally typed print instead of printf twice. When I change that, your code compiles and then can be run. I then get the expected output of heyhey 2 hey. Hope this helps! :sparkles:

And yes, you could test it in your local editor, but it still wouldn't compile given the syntax errors :smiley:

Robert Stamate
Robert Stamate
13,227 Points

Thank you Jennifer Nordell; After I had written the comment I realized the mistake. Meanwhile I opened a new Workspace and continued working on that.