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

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

    As for me on win7 64bit.

    Copy the java.exe javaw.exe javaws.exe in the folder C:\Program Files\Java\jre1.8.0_91\bin to the C:\Windows\System32.

    and then open cmd, type java -version.

    C:\Users\HEcom>java -version
    java version "1.8.0_91"
    Java(TM) SE Runtime Environment (build 1.8.0_91-b14)
    Java HotSpot(TM) 64-Bit Server VM (build 25.91-b14, mixed mode)
    

    Before the above make sure the Registry's CurrentVersion is 1.8

    In the START menu type "regedit" to open the Registry editor

    1. Go to "HKEY_LOCAL_MACHINE" on the left-hand side registry explorer/tree menu
    2. Click "SOFTWARE" within the "HKEY_LOCAL_MACHINE" registries
    3. Click "JavaSoft" within the "SOFTWARE" registries
    4. Click "Java Runtime Environment" within the "JavaSoft" list of registries here you can see different versions of installed java
    5. Click "Java Runtime Environment"- On right hand side you will get 4-5 rows . Please select "CurrentVersion" and right Click( select modify option) make sure the version is "1.8"

提交回复
热议问题