It\'s showing -
This installer must be executed using a Java Development Kit (JDK)
step 1: C:\Windows\system32>cd %JAVA_HOME%
setp 2: C:\Program Files\Java\jdk1.8.0_201\bin>java -jar E:\PMLaptrinh\WebLogic\fmw_12.2.1.3.0_wls.jar
100% run successful.
Problems
Solutions
You have to set the variable JAVA_HOME, but also add the jdk bin folder to the PATH variable. (type in the console window you use to start the weblogic installer)
It should look similiar to this example:
set JAVA_HOME=C:\develop\jdk1.8.0_66
set path=C:\develop\jdk1.8.0_66\bin;%path%
The JRE is the Java Runtime Environment - what is needed just to run "regular" Java software. It's part of the JDK, but not the complete package. The JDK includes the JRE plus developer tools e.g. the Java Compiler. Weblogic's installer apparently needs the full JDK, not only the JRE.
If you installed the JDK, you should be able to find it on your hard drive (e.g. C:\Program Files\Java\jdk1.7_<something>
). The path in your screenshot is only the "raw" JRE.
I understand this thread is little old, but I faced similar issue today while installing weblogic server and wanted to give my observation and resolution.
If you have installed any oracle product or java, the first value in the environment variable PATH refers to "C:\ProgramData\Oracle\Java\javapath" which points to the JRE.
To override this setting, I just added %JAVA_HOME%\bin; at the beginning of the path variable and after restarting the command prompt, it started picking up JDK instead of JRE.
I hope this helps someone who is looking for an alternative solution.
For Linux when you download the JDK using http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html.
Goto Run > Debug > Debug (Edit configuration) > Default > TestNG > JRE (set up the location where you have downloaded the file)