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

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

\"Error

It\'s showing -

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


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

    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.

    0 讨论(0)
  • 2021-01-31 09:01

    Problems

    1. You can't run as admin
    2. You launch command prompt and it confuse the Java home
    3. You've done lots with settings but can't fix it

    Solutions

    1. Uninstall JAVA completely.
    2. Uninstall JAVA again, this time unselect JRE.
    3. Launch command prompt and run the JAR setup file
    0 讨论(0)
  • 2021-01-31 09:05

    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%
    
    0 讨论(0)
  • 2021-01-31 09:09

    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.

    0 讨论(0)
  • 2021-01-31 09:12

    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.

    0 讨论(0)
  • 2021-01-31 09:12

    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)

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