I have installed Oracle soa suite quickstart 12c (12.2.1.4.0) in windows 7. The java version i'm using is jdk1.8.0_241.
After creating a standalone domain, when i tried to start the weblogic server using startWeblogic.cmd I got the following error.
The JRE was not found in directory C:\Program Files\Java\JDK18~1.0_2 <JAVA_HOME>
Please edit your environment and set the JAVA_HOME variable to the root directory of your Java installation.
I have set the JAVA_HOME variable in my environment as follows
JAVA_HOME = C:\Program Files\Java\jdk1.8.0_241
Please suggest solutions to fix this issue.
I resolved it by following below steps.
First ,this error is caused by space in java installation directory (as in C:**Program Files**\Java\jdk1.8.0_241)
To overcome this you need to use quotes to set JAVA_HOME in some files in your Oracle home.
Few file where you need to check
In the above files if you find any lines like
Modify them to below format with quotes and save them.