0

I downloaded the 64 bit JDK from the oracle site (Win7 64bit) and installed it with the install wizard. The instalation folder went in Program file. When I copy the link for the PATH variable and edit it the way it is shown everywhere, it doesn't work. When I check in CMD "java-version" it always says:

The java version is not recognized as an internal or external command.

Any ideas what is wrong?

I edited this PATH variable so many times and it never worked.

10
  • How are you checking the PATH, can you include your command in your post? Commented Aug 3, 2014 at 19:19
  • What exactly is in your Program Folders for Java? Commented Aug 3, 2014 at 19:19
  • C:\Program Files\Java\jdk1.8.0_11\bin, this is what i am putting in the PATH with ; and everythign that is explained and still it doesnt work. Commented Aug 3, 2014 at 19:21
  • Step by step instructions here How to Install and Get Started with Java Programming. Please give us the exact output from step 4. Commented Aug 3, 2014 at 19:24
  • @Transcendent I am really sorry but I am quite inexperienced in programming and dont get what u mean? I write in CMD java-version... that`s all I did , because this is what i read and saw on videos. Commented Aug 3, 2014 at 19:26

1 Answer 1

2

You should type java -version, not java-version.

Sign up to request clarification or add additional context in comments.

5 Comments

what do u mean? where`s the difference?
java<space>-version not java-verson
The command is java(empty space)-version, what you seem to type is java-version (which is an unexistant command).
One essential space.
Spoko you were right. Apparently the space fixed the problem and now it is returning my version of JDK.Thanks a lot to everyone

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.