Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
317 views
in Technique[技术] by (71.8m points)

Why is itshowing your JDK 'C:Program FilesJavajre7' is not a valid JDK while installing WebLogic server?

Error image

It's showing -

This installer must be executed using a Java Development Kit (JDK)
but C:Program FilesJavajre7 is not a valid JDK.

</>- while installing the WebLogic server.

I have installed the 64-bit JDK version 1.7. Where am I making a mistake?

question from:https://stackoverflow.com/questions/37001407/why-is-itshowing-your-jdk-c-program-files-java-jre7-is-not-a-valid-jdk-while

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

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

  1. run command prompt as administrator

  2. go to the directory which contains your jar file

    C:Windowssystem32>cd/
    
    C:>cd oracleweblogic
    
  3. Set JAVA_HOME and path again on the command prompt

    //put path in double quotes otherwise it won't recognize variable

    C:oracleweblogic>set JAVA_HOME="C:Program FilesJavajdk1.8.0_45"
    
    C:oracleweblogic>set path=C:Program FilesJavajdk1.8.0_45in;%path%
    

    If you have already set the JAVA_HOME then in the second step you can also type as: C:oracleweblogic>set path=%JAVA_HOME%in;%path%

  4. run the jar file

    C:oracleweblogic>java -jar fmw_12.2.1.1.0_wls_quick.jar
    

you should see something like this if your setup is correct

C:oracleweblogic>java -jar fmw_12.2.1.1.0_wls_quick.jar
Launcher log file is C:UsersANANTAppDataLocalTempOraInstall2016-10-06_12-4
6-22PMlauncher2016-10-06_12-46-22PM.log.
Extracting the installer . . . . . . . . . . . . . . . . . . . . . . . . . . . .
 . . . . . . . . . . . . . Done
Checking if CPU speed is above 300 MHz.   Actual 1696    Passed
Checking swap space: must be greater than 512 MB    Passed
Checking if this platform requires a 64-bit JVM.   Actual 64    Passed (64-bit n
ot required)
Checking temp space: must be greater than 300 MB.   Actual 42253 MB    Passed


Preparing to launch the Oracle Universal Installer from C:UsersANANTAppDataL
ocalTempOraInstall2016-10-06_12-46-22PM
Log: C:UsersANANTAppDataLocalTempOraInstall2016-10-06_12-46-22PMinstall20
16-10-06_12-46-22PM.log

*****************************************************


Distribution Name : Oracle Fusion Middleware 12c WebLogic and Coherence Develope
r
Distribution Version : 12.2.1.1.0

Oracle Home : C:oracleweblogicwls12210
Java Home : C:Program FilesJavajdk1.8.0_45

Note: Oracle Home not supplied (defaulted to <present working dir>wls12210)

*****************************************************

Copyright (c) 1996, 2016, Oracle and/or its affiliates. All rights reserved.
Skipping Software Updates
Starting check : CertifiedVersions
Expected result: One of 6.1,6.2,6.3,10.0
Actual Result: 6.3
Check complete. The overall result of this check is: Passed
CertifiedVersions Check: Success.

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...