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 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,413 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/