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

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

提交回复
热议问题