I got the following error trying to install the Oracle WebLogic Server:
The JDK wasn't found in directory "c:\Program Files\Java\jdk1.7.0_17".
Please edit the setWLSEnv.cmd script so that the JAVA_HOME
variable points to the location of your JDK.
Your environment has not been set.
The fix was simple, but took me a little bit to figure out. The problem is the quotes. When setWLSEnv.cmd call the command to verify that the java.exe is present, there are quotes in quotes and the command fails. To fix change "Program Files" to the short name. This can be found by running the 'dir /x' command at c:\ level. In my case the result look like this:
>set JAVA_HOME=c:\PROGRA~1\Java\jdk1.7.0_17
Actually the real problem is that MS put a space in the directory name, but could luck getting them to fix their mistake.
The JDK wasn't found in directory "c:\Program Files\Java\jdk1.7.0_17".
Please edit the setWLSEnv.cmd script so that the JAVA_HOME
variable points to the location of your JDK.
Your environment has not been set.
The fix was simple, but took me a little bit to figure out. The problem is the quotes. When setWLSEnv.cmd call the command to verify that the java.exe is present, there are quotes in quotes and the command fails. To fix change "Program Files" to the short name. This can be found by running the 'dir /x' command at c:\ level. In my case the result look like this:
>set JAVA_HOME=c:\PROGRA~1\Java\jdk1.7.0_17
Actually the real problem is that MS put a space in the directory name, but could luck getting them to fix their mistake.
No comments:
Post a Comment