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 trialamitha catherine
1,489 PointsUnable 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
amitha catherine
1,489 PointsThank you Jennifer .
Robert Stamate
13,227 PointsI'm having the same issue.
- Snapshot link: https://w.trhou.se/4as7r093uc
Until this is fixed, is is possible to test out code in my local editor (ex: NetBeans)?
Best regards.
Jennifer Nordell
Treehouse TeacherRobert 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!
And yes, you could test it in your local editor, but it still wouldn't compile given the syntax errors
Robert Stamate
13,227 PointsThank you Jennifer Nordell; After I had written the comment I realized the mistake. Meanwhile I opened a new Workspace and continued working on that.
Jennifer Nordell
Treehouse TeacherJennifer Nordell
Treehouse TeacherHi 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