The following error might occur while executing java from command prompt

Error:

This installer must be executed using a Java Development Kit (JDK)

but C:\Program Files\Java\jre7 is not a valid JDK.

Issue and Fix

The issue is due to the java is pointing to JRE instead of JDK

Execute the java from the JDK folder like below

c:\Program Files\Java\jdk1.8.0_60\bin\java.exe” -jar “<FILENAME>.jar”

govindan Error: This installer must be executed using a Java Development Kit (JDK)
Connect me

Govind

Thank you for visiting my personal blog. Myself Govindan, Software Developer by profession since 2006 and hence I started this blog early in 2016 and ever since I've been writing about technologies experienced and learnings of everyday life.

The views expressed on this blog are my personal views and do not necessarily reflect the views of my employer.

Please feeling free to reach me on any comments and feedbacks you have. Would be more than glad to listen and reply šŸ™‚
govindan Error: This installer must be executed using a Java Development Kit (JDK)
Connect me
By | 2016-08-29T19:12:12+00:00 February 13th, 2016|Categories: Java|Tags: |6 Comments

6 Comments

  1. Abdlfattah May 16, 2017 at 11:30 am

    7
    down vote
    i faced the same problem even when JAVA_HOME points to JDK this is how i resolved it ,

    run command prompt as administrator
    go to the directory which contains your jar file
    C:Windowssystem32>cd/

    C:>cd oracleweblogic

    Set JAVA_HOME and path again on the command prompt
    C:oracleweblogic>set JAVA_HOME=C:Program FilesJavajdk1.8.0_45

    C:oracleweblogic>set path=C:Program FilesJavajdk1.8.0_45bin;%path%

    run the jar file
    C:oracleweblogic>java -jar fmw_12.2.1.1.0_wls_quick.jar

  2. RajatRaj December 6, 2016 at 5:52 am

    If you are try fmw_12.2.1.1.0_wls_quick or another jar paste on java bin folder then try to install .
    C:Program FilesJavajdk1.8.0_40bin>java.exe -jar fmw_12.2.1.2.0_wls.jar
    working properly …..

  3. Sricharan Monigari September 19, 2016 at 10:38 am

    I think she tried jre path initially “C:Program Files (x86)Javajre1.8.0_73bin>java.exe -jar C:WVSTestingfmw_12.2.1.1.0_wls_quick.jar… so if we use JDK directory then it would work

  4. Dennis John September 14, 2016 at 11:50 pm

    Dear Anita,

    How it worked, I am also facing the same problem.
    Kindly help.

    Dennis

  5. Anita Kulkarni August 29, 2016 at 3:36 pm

    Never mind I was executing from jre dir not JDK. It worked, Thanks a bunch!

  6. Anita Kulkarni August 29, 2016 at 3:05 pm

    I am trying to install web logic and I still keep getting this error. I tried:C:Program Files (x86)Javajre1.8.0_73bin>java.exe -jar C:WVSTestingfmw_12.
    2.1.1.0_wls_quick.jar ORACLE_HOME=C:oracle
    Launcher log file is C:UserskulkarniaAppDataLocalTempOraInstall2016-08-29_
    04-01-38PMlauncher2016-08-29_04-01-38PM.log.
    Extracting the installer . . . . . . . . Done
    This installer must be executed using a Java Development Kit (JDK)
    but C:Program Files (x86)Javajre1.8.0_73 is not a valid JDK Java Home.
    don’t know where this jre is coming from..

Comments are closed.

Like us on Facebook.
Connect!