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

前端 未结 27 2424
星月不相逢
星月不相逢 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: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%

提交回复
热议问题