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

Hemmings Koranteng
Hemmings Koranteng
2,568 Points

console may be broken! either i've found a potential bug or am i just really bad at coding

https://w.trhou.se/dxva82it7t!

im currently following along the course in the workspace for (java path, learning objects, creating mvp section).

up until now i have been compiling & running the code in the workspace with no problems, but after the "remaining tries" video i cannot seem to execute the code in the console.

there are no runtime error messages and the console just seems to hang and shows the following:

"picked up JAVA_TOOL_OPTION: Xmx128m Picked up _JAVA_OPTIONS: -Xmx128m JAVA_TOOL_OPTION: Xmx128m Picked up _JAVA_OPTIONS: -Xmx128m"

I thought it may be server overload or something but i've come back the next morning to find the same issue. also i am able to type below the above mentioned and this is not the behaviour i expected.

i'm running the code using the following command -

clear && javac Hangman.java && java Hangman.

if i miss spell any of the above i get the "Error: could not find or load main class Hangma"

i have eyeballed the code to compare against the craig's and cant seem to find any errors. i may have missed something but without any error messages its difficult to tell.

i have attached a screenshot and a zipped file of my code. Please can you let me know what i'm doing wrong as i would like to continue following on with the course.

Thanks

Hemmings Koranteng
Hemmings Koranteng
2,568 Points

my original email to help@teamtreehouse.com - but they directed me to you guys. havent figured out a way to attached files (not even sure its possible) but any help will be greatly appreciated!

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

Hi! First off, the JAVA_TOOL_OPTION is not an error and can be ignored. It's an option set for Treehouse's JVM to make sure that the processes don't eat up the RAM (as I understand it).

As you may have noticed, it is not possible to attach a zip file directly to your question. However, there's an easier and even better solution. On the upper right hand side of your workspace you'll find a camera icon. Clicking this will allow you to make a "snapshot" which you can link here. This allows other students like myself to fork a copy of that entire workspace and take a look at your code and file structure without changing your copy. Try this, and post a link of your snapshot here.

Look forward to hearing back from you! :sparkles:

1 Answer