Renato Lopes
Renato Lopes

Reputation: 1

Java SE Development kit didn't installed right?

First off, let me say I did all of this while watching this video: https://www.youtube.com/watch?v=Hl-zzrqQoSE

So, I tried downloads jdk-8u60 for windows 64bit, as seen right here: http://www.oracle.com/technetwork/java/javase/downloads/index.html (JDK), but when I first installed my antivirus Avira did a system scam, I don't remember if it was for java or not, but just pointing out.

I also got a strange error, saying that there is a missing file inside the bin folder (I can't get that error again, sorry folks). When I try to run "javac" on CMD it says "java is not recognized as an internal or external file" (my computer is not on english, sorry), so I went to check and the folder is like this:

enter image description here

As I can see, there is a lot of missing files compared to the guy's videos, and I wonder what could have gone wrong.

I tried:

I can't see to find the solution. Any help?

Upvotes: 0

Views: 1000

Answers (2)

Renato Lopes
Renato Lopes

Reputation: 1

Apparently I downloaded the wrong java, my system is 64 bits (which means x64) and I downloaded JDK x86 (which is 32 bits). Just deleting all the JDK and JEK files and reinstalling using the correct one completely fixes it. Remember to use the "path" fix too:

Blockquote You need to add the JDK bin to your path. You can do this by going to Control Panel > System and Security > System > Advanced System Settings > Environment Variables > System Variables > path > edit. Then, you need to add this to the path: ;C:\Program Files\Java\jdk1.8.0_60\bin

WARNING: this is highly dangerous! if you delete parts of the path, your computer might not function properly! Be extremely Careful!

-Ethan Ferguson

Upvotes: 0

Ethan Ferguson
Ethan Ferguson

Reputation: 69

You need to add the JDK bin to your path. You can do this by going to Control Panel > System and Security > System > Advanced System Settings > Environment Variables > System Variables > path > edit. Then, you need to add this to the path: ;C:\Program Files\Java\jdk1.8.0_60\bin

WARNING: this is highly dangerous! if you delete parts of the path, your computer might not function properly! Be extremely Careful!

Upvotes: 1

Related Questions