mrRobot
mrRobot

Reputation: 21

Unable to set a path for JDK

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?

Upvotes: 2

Views: 2722

Answers (1)

Nihal Rp
Nihal Rp

Reputation: 480

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.

Upvotes: 1

Related Questions