0
votes

I've seen other questions like this but not concerning JDK1.8.1_25. There is no java.exe fin in the bin file. In fact there isn't much in the bin file at all like there is in JDK1.7.0.71. So when I'm trying to execute java programs from the cmd line, nothing is happening. When I type javac -version there is nothing found. I'm trying to follow a Lynda tutorial but this isn't helping as it isn't doing the same as tutorial although tutorial is using an earlier version of JDK but really I would of thought the latest version should work.

My %Path% is:

-C:\ProgramData\Oracle\Java\javapath;C:\MinGW\bin;C:\MinGW\msys\1.0\bin;C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\oraclexe\app\oracle\product\11.2.0\server\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Microsoft SQL Server\110\Tools\Binn\;C:\Program Files\Windows Live\Shared;C:\Program Files\QuickTime\QTSystem\C:\Program Files\Java\jdk1.7.0_71\bin;

Wow didn't realise that was so long, that can't be right either can it !?!

Regards,

Caroline

2
If there is no java.exe or javac.exe file in bin folder of jdk1.8.0_25, probabaly your installation not perfect. Also in your path, you've configured the path to jdk1.7.0_71 instead of jdk1.8.0_25The Coder
Oh yes I see, I had changed that to jdk1.8.0_25 but changed it back again. No there is definitely no java.exe or javac.exe files anyway in the bin. I'll try re-installing I think - thanks :-)Catess76

2 Answers

0
votes

A long %PATH% is normal.

If your 1.8 JDK is incomplete (it can happen), revert your jdk in the %PATH% to previous version, and also %JAVA_HOME%.

Remember to close any console windows and restart any applications for it to take effect :)

To test:

echo %JAVA_HOME%
java -version
0
votes

Your path should include (probably start with) the following:

C:\Program Files\Java\jdk1.8.1_25\bin;

My jdk1.8.0_05\bin contains 53 files, 3,188,466 bytes, (including javac.exe,) and I doubt that they have drastically changed anything from 0_05 to 1_25, so if your bin does not contain anything like that, there must be something wrong with your installation. If so, then uninstall it and re-install it from scratch.

Also, if your path does really begin with a - character, or if it does really contain the string QTSystem\C:\ instead of QTSystem\;C:\ then you also have a corrupt path. (Your java 7 should have never worked.)