Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

While running

sencha app build production 

I am getting the following error:

Error: Registry key 'Software\JavaSoft\Java Runtime Environment'\CurrentVersion'

has value '1.8', but '1.7' is required. Error: could not find java.dll Error: Could not find Java SE Runtime Environment.

java -version , command is showing following:

java version "1.8.0_40" Java(TM) SE Runtime Environment (build 1.8.0_40-b26) Java HotSpot(TM) 64-Bit Server VM (build 25.40-b25, mixed mode)

Not able to find where path is going wrong. Any idea?

----------------------- EDIT ------------------------------------------------

Note: I am using Windows 7 (64 bit).

I have tried uninstalling the sencha touch cmd and reinstalling. But still same error.

I have uninstalled all the java version instances and reinstalled the latest one, Still the problem persist.

like image 773
Anand Gupta Avatar asked Apr 17 '15 11:04

Anand Gupta


People also ask

Is Java 1.7 still supported?

Extended support is expiring for a Java variant that is more than a decade old. The end is near for Java 7, a nearly 11-year-old release of standard Java. Oracle is set to discontinue extended support for the platform at the end of July 2022.

Is JDK 1.8 still supported?

Yes, it's still a LTS since extended support will be provided till 2030. You can check the official Oracle Java Roadmap.


1 Answers

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)]

like image 151
Anand Gupta Avatar answered Sep 19 '22 11:09

Anand Gupta