为什么在安装 WebLogic 服务器时显示您的 JDK 'C:\Program Files\Java\jre7' is not a valid JDK? [英] Why is itshowing your JDK 'C:\Program Files\Java\jre7' is not a valid JDK while installing WebLogic server?

查看:76
本文介绍了为什么在安装 WebLogic 服务器时显示您的 JDK 'C:\Program Files\Java\jre7' is not a valid JDK?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

它正在显示 -

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

</>- 在安装 WebLogic 服务器时.

</>- while installing the WebLogic server.

我已经安装了 64 位 JDK 1.7 版.我哪里出错了?

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

推荐答案

即使 JAVA_HOME 指向 JDK,我也遇到了同样的问题我就是这样解决的,

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

  1. 以管理员身份运行命令提示符

  1. run command prompt as administrator

转到包含您的 jar 文件的目录

go to the directory which contains your jar file

C:\Windows\system32>cd/

C:\>cd oracleweblogic

  • 在命令提示符下再次设置 JAVA_HOME 和路径

  • 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 Files\Java\jdk1.8.0_45"
    
    C:\oracleweblogic>set path=C:\Program Files\Java\jdk1.8.0_45\bin;%path%
    

    如果您已经设置了 JAVA_HOME,那么在第二步中您还可以输入:C:\oracleweblogic>set path=%JAVA_HOME%\bin;%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%\bin;%path%

    运行jar文件

    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:\Users\ANANT\AppData\Local\Temp\OraInstall2016-10-06_12-4
    6-22PM\launcher2016-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:\Users\ANANT\AppData\L
    ocal\Temp\OraInstall2016-10-06_12-46-22PM
    Log: C:\Users\ANANT\AppData\Local\Temp\OraInstall2016-10-06_12-46-22PM\install20
    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:\oracleweblogic\wls12210
    Java Home : C:\Program Files\Java\jdk1.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.
    

    这篇关于为什么在安装 WebLogic 服务器时显示您的 JDK 'C:\Program Files\Java\jre7' is not a valid JDK?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

    查看全文
    登录 关闭
    扫码关注1秒登录
    发送“验证码”获取 | 15天全站免登陆