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 Java Objects (Retired) Creating the MVP Prompting for Guesses

Stas Novsky
Stas Novsky
3,119 Points

console 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

Stas Novsky
Stas Novsky
3,119 Points

like you said: clear && javac Hangman.java && Hangman.java in console

Craig Dennis
Craig Dennis
Treehouse Teacher

hmmm... You're missing something after that last &&.

Stas Novsky
Stas Novsky
3,119 Points

treehouse:~/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
Craig Dennis
Treehouse Teacher

You need to call java Hangman not Hangman java

Stas Novsky
Stas Novsky
3,119 Points

Ooooh, my mistake...a lot of java in a short time)... Sorry and thanks)