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.

Java Java Objects Harnessing the Power of Objects Incrementing and Decrementing

Command Prompt Commands

So, in the Java tutorials, the guy so far has used clear, javac, java, and jshell commands. I already have previous Java experience and used Treehouse to hopefully learn some more stuff. When I tried the 'clear' and 'jshell' commands in command prompt, a built in app to run files like Java Files, it gave a warning that said something like "jshell is not recognized as an external or internal command, operable program or batch file." For anybody who used a non-ide and command prompt to run their Java Files, could you please tell me why this error message in occurring. Thank you very much for your help!

1 Answer

Seth Kroger
Seth Kroger
56,392 Points

That message means the program isn't installed on your system. Workspaces will have in installed but jshell isn't part of the standard JDK yet. It's part of the soon to be released Java 9 (comming Sept 2017). You can get a preview build of the Java 9 JDK if you really want to follow along on your own system instead of Workspace: http://jdk.java.net/9/