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 Local Development Environments How it Works Check Your Installation

Jiho Song
Jiho Song
16,469 Points

I can't see any command prompter

java -version

I wrote this straight to my windows search bar and anything didnt come out

how shall i proceed?

results.txt
# Paste your info below

2 Answers

andren
andren
28,558 Points

You are not meant to type the command in the Windows search bar, it is a command that has to be run in a terminal. On Windows there are two terminal programs CMD and PowerShell, either should work in this case.

You should be able to launch those programs by simply typing in cmd or powershell into the windows search bar and hitting enter. Then once the terminal window appears type the java -version command into that window.

If you still do not get back a response that provides you with information on what Java version you have installed then you should go back and try to install it again following these instructions.

you can search for cmd in tool bar , and then write java -version in the cmd