2

I'm having a problem with setting a path for JDK. Whenever I try to execute a program, I get this message:

The system cannot find the file C:\ProgramData\Oracle\Java\javapath\java.exe.

How can I solve this issue?

coatless
  • 20,011
  • 13
  • 69
  • 84
mrRobot
  • 21
  • 3
  • Did you really google it before posting it here: http://stackoverflow.com/questions/26864662/how-to-solve-the-error-the-system-cannot-find-the-file-c-programdata-oracle-ja – surajs1n Oct 09 '16 at 17:20
  • Maybe these links could help: 1. http://stackoverflow.com/questions/26864662/how-to-solve-the-error-the-system-cannot-find-the-file-c-programdata-oracle-ja 2. http://stackoverflow.com/questions/33355440/java-system-cannot-find-the-file-c-java-exe – Kirill Oct 09 '16 at 17:43
  • Yeah I finally got it. Thanks so much! – mrRobot Oct 09 '16 at 17:51

1 Answers1

1

Just set %JAVA_HOME%/bin to your path variable.

To do this:-

  1. Right click My Computer and select Properties.
  2. On the Advanced tab, select Environment Variables, and then edit JAVA_HOME to point to where the JDK software is located, for example, C:\Program Files\Java\jdk1.6.0_02.
Nihal Rp
  • 484
  • 6
  • 15