Why is itshowing your JDK 'C:\Program Files\Java\jre7' is not a valid JDK while installing WebLogic server?

后端 未结 17 551
温柔的废话
温柔的废话 2021-01-31 08:24

\"Error

It\'s showing -

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


        
相关标签:
17条回答
  • 2021-01-31 08:53

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

    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:\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.
    
    0 讨论(0)
  • 2021-01-31 08:54

    It worked for me after I used this line:

    Downloaded fmw_12.2.1.1.0_wls_quick_Disk1_1of1 and extracted to C:\Softwares\OracleFustionMiddleware and then from command prompt

    C:\softwares\OracleFusionMiddleware>"C:\Program Files\Java\jdk1.8.0_91\bin\java. exe" -jar fmw_12.2.1.1.0_wls_quick.jar

    0 讨论(0)
  • 2021-01-31 08:55
    • Go to JDK folder
    • Run like this:
    E:\wlinstallnfile\fmw_12.2.1.3.0_wls_Disk1_1of1>"E:\ATG\software\Java\jdk1.8.0_201\bin\javaw.exe" -jar fmw_12.2.1.3.0_wls.jar**
    
    0 讨论(0)
  • 2021-01-31 08:55

    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”
    
    0 讨论(0)
  • 2021-01-31 08:56

    You can install it by giving the full path:

    C:\Program Files\Java\jdk1.8.0_131\bin\java" -jar fmw_12.2.1.2.0_wls.jar
    
    0 讨论(0)
  • 2021-01-31 08:56

    this is the solution. Specify temp directory having more space like the following example.

    java -Djava.io.tmpdir=C:\Temp -jar fmw_infra_121200.jar

    0 讨论(0)
提交回复
热议问题