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 trialMatthew 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,712 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,712 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.