In user environments where the path to java is not already established as an system-level environment variable, the service is unable to determine where to find java and this error will occur.
This could occur, for example, in environments where there is more than one JDK installed, or where the default JDK is different from the JDK which needs to be used by WLS.
Try to set the environment variable in windows i.e JAVA_HOME=C:\Sun\Java\jdk1.7.xx.x. to point to jdk 1.7 and run the configuration wizard.
Hope it helps!!
thank you Vijaya_Gopal
i am remove jdk 1.7.15 & 1.7.25 & wls 12c then install jdk & wls .
i am set environment variable in windows JAVA_HOME to the jdk default C:\Program Files\Java\jdk1.7.0_25
problem is not solve
Probably it is a little late, but maybe it can be useful for the other users with the same issue.
The file setHomeDirs.cmd under %ORACLE-MIDDLEWARE%\oracle_common\common\bin does not support space in the java path.
I resolved it just copying my jdk directly under C: and changing the following row:
SET COMMON_JAVA_HOME=C:\\Program Files (x86)\\Java\\jdk1.7.0_45