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\Oracle\Java and delete that directory and all files contained within. You can do this from the command line using rmdir /S C:\ProgramData\Oracle\Javarmdir /S C:\ProgramData\OracleNow install JDK and set the path.
Run the program.You won't find the same problem anymore.