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 trialStas Novsky
3,119 Pointsconsole Error -su: Hangman.java: command not found
trying to launch Hangman.java in console, getting error... checked Hangman.java file, same as Craig has
2 Answers
Craig Dennis
Treehouse TeacherHow are you launching it?
Stas Novsky
3,119 Pointstreehouse:~/workspace$ javac Hangman.java
treehouse:~/workspace$ Hangman java
-su: Hangman: command not found
treehouse:~/workspace$
compiling works good...problem is after that i think
Craig Dennis
Treehouse TeacherYou need to call java Hangman
not Hangman java
Stas Novsky
3,119 PointsOoooh, my mistake...a lot of java in a short time)... Sorry and thanks)
Stas Novsky
3,119 PointsStas Novsky
3,119 Pointslike you said: clear && javac Hangman.java && Hangman.java in console
Craig Dennis
Treehouse TeacherCraig Dennis
Treehouse Teacherhmmm... You're missing something after that last &&.