I am on JDK 8u25 on Windows 8, and I am experiencing a problem with my Java installation. I can run javac perfectly fine, but running java produc
c:\ProgramData\Java\javapath is used for symlinks. You can of course add the full path to your Java Path to %PATH%, but equally you can create a symlink to the path to the above location.
CMD as Administrator.mklink java.exe (full path to your Java.exe)
egmklink java.exe "C:\Program Files\Java\jdk1.8.0_25\bin\java.exe"