Welcome to the Treehouse Community
The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

Matthew Roberts
Courses Plus Student 11,239 Pointsbash: Hangman: command not found
I'm getting this error and can't run my Hangman application.
3 Answers

Steve Hunter
57,696 PointsHi Matthew,
What are you typing in and in what location?
Can you screenshot the issue?
Thanks,
Steve.

Craig Dennis
Treehouse TeacherSounds like you are missing the java
bit and it's trying to run a program called Hangman
.

Matthew Roberts
Courses Plus Student 11,239 PointsI type in - clear && javac Hangman.java && Hangman java
that's when I get the error. Now I'm getting a new error when compiling that says -
./Prompter.java:32: error: cannot find symbol
return mGame.applyGuess(guess);
^
symbol: variable guess
location: class Prompter
1 error

Steve Hunter
57,696 PointsThe last phrase needs to be java Hangman
Steve.

Matthew Roberts
Courses Plus Student 11,239 PointsOh wow I feel ridiculous! haha. thanks guys! Still need help with that second (guess) issue.

Craig Dennis
Treehouse TeacherWe've all been there man! And now you know what that error looks like next time it happens! Thanks for asking about it so the next person can find this thread and get their problem magically answered!

Matthew Roberts
Courses Plus Student 11,239 PointsThank you for the great lessons! Look forward to learning more!
Matthew Roberts
Courses Plus Student 11,239 PointsMatthew Roberts
Courses Plus Student 11,239 Pointshttps://w.trhou.se/kc9z1lhwrl
When I run this in the console I get the error posted above. I can screenshot it but this may be easier to see.