Registry key Error: Java version has value '1.8', but '1.7' is required

前端 未结 27 2314
星月不相逢
星月不相逢 2020-11-30 20:30

While running

sencha app build production

I am getting the following error:

Error: Registry key \'Software\\JavaSof

相关标签:
27条回答
  • 2020-11-30 20:33

    After trying more than hundred of tricks, finally got success.

    I removed all java.exe, javaw.exe and javaws.exe from my

    1. Windows\System32 and

    2. Windows\SysWOW64 folder. [Try step 2 if you have x64 system (Win 7 64 bits)]

    0 讨论(0)
  • 2020-11-30 20:34

    There exist somewhere another java.exe from jre version 1.8 that it is in "path" you should find and delete it if it is possible. it may be in user tempdata for applications that need jre.

    0 讨论(0)
  • 2020-11-30 20:35

    My System:- Windows 8.1

    Java Environments

    • C:\JavaEnvironment\Java\jdk1.8.0_161
    • C:\JavaEnvironment\Java\jdk1.7.0_75

    I recently installed Oracle 11g XE and I received the mentioned error message when accessed "java" command at command prompt.

    I checked my environment variables, checked the sequence (as mentioned by previous replies) and detected that my system PATH variable had following entry as first entry:

    C:\OracleDatabase\oraclexe\app\oracle\product\11.2.0\server\bin;

    I changed the sequence and defined JDK path as first entry:


    I replicated the same change to User Variable: Path


    After finishing the above activity, I restarted the command prompt and executed java -version command and the problem had vanished. It displayed Java 8 as the current version.

    0 讨论(0)
  • 2020-11-30 20:36

    Remove it from the System path:

    %SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem
    

    And it will fix the issue in upgrading java version from 1.7 to 1.8

    0 讨论(0)
  • 2020-11-30 20:36

    Please change JAVA_BIN and JAVA_HOME system variable, and then restart system or maybe relogin. You are having that error because it is still jdk1.7 path. On windows it is like this:

    0 讨论(0)
  • 2020-11-30 20:37

    I've had the same problem. Simple solution that worked for me is to rearrange the entries in the PATH for JRE/JDK. This problem started to appear after installing JRE 8 whose installation has put some executable files in System32 or SysWOW64 directories, these executable files are messing up. To resolve the problem:

    1. Create environment variable pointing to JDK home as JAVA_HOME.

      set JAVA_HOME=C:\Progra~1\Java\jdk1.8.0_45

    2. Put the entry %JAVA_HOME%\bin at start in your PATH environment variable. Appending existing value of PATH. For example:

      path=C:\Program Files\Java\jdk1.8.0_45\bin;%path%

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