I'm trying to install Weblogic using the Quick Installer.
According to the README file I shoudl first set my JAVA_HOME system variable.
QUICKSTART
- Setup JAVA_HOME for the target platform.
So, consider this done.
If run %JAVA_HOME% in my terminal I can verify that.
But when I run the installer it point to the Java Runtime path.
Why is that ?
35 Answers
Although it is unclear why the installer is looking in the jre directory instead of jdk, a simple workaround for installing Weblogic is to simply run this command:
"C:\Program Files\Java\jdk1.8.0_121\bin\java -jar fmw_12.2.1.2.0_wls_quick.jar" Environment variables don't propagate changes instantly, they are set once when a process is started and don't change anymore unless the process itself does it.
If you have opened that cmd window before setting new JAVA_HOME, then it's probably still using the old value. You can check that by running echo %JAVA_HOME% in that cmd.
If you want to quickly ensure that all env variables are up to date across the system, then just log out from Windows and then log in again. The quicker way would be to run set JAVA_HOME=<valid_path_here> in that cmd, but it will update it only there and in programs started from that cmd.
Try running from $JAVA_HOME\bin directory. C:\Program Files\Java\jdk1.8.0_221\bin>java -jar C:\Weblogic\fmw_12.2.1.3.0_wls_quick_Disk1_1of1\fmw_12.2.1.3.0_wls_quick.jar
It works.
Run this commands
set JAVA_HOME=C:\Program Files\Java\jdk1.8.0_XXX
set path=C:\Program Files\Java\jdk1.8.0_XXX\bin;%path%please replace XXX with the version of you java then you can now run the cmd:
java -jar fmw_12.2.1.2.0_wls_quick.jar 2 Check the if folder "C:\Program Files (x86)\Common Files\Oracle\Java\javapath" exist if so: remove entry "C:\Program Files (x86)\Common Files\Oracle\Java\javapath" from your PATH env variable. It prevents using your correct JDK instance.