Registry Key '…' has value '1.7', but '1.6' is required. Java 1.7 is Installed and the Registry is Pointing to it

My development team currently was forced over to a remote development environment where we don't have full access to the servers. Before the update over we had a JAR that was running good on Java 1.7 x64 along with JRE 7. When we moved over to the new server our JAR was running alright but then one of the server admins "updated" our Java to an older Ver. and uninstalled the one we were using. do not ask me why I do not know. I re-installed Java 1.7 and uninstalled 1.6 along with the JREs.
The below issue occurs at runtime there're no make errors:
Registry key 'Software\JavaSoft\Java Runtime Environment\CurrentVersion'
has value '1.7' but '1.6' is needed.
Error: couldn't find java.dll
Error: couldn't find Java SE Runtime Environment.

I have execute the similar JAR on my laptop with no issues. Both the server and my laptop have JDK 1.7 and JRE 7 in the respective %HOME% variables and system PATH. I have even reinstalled JRE 6 and placed it later in the system environment PATH variables with the similar solution.
I hv also Updated the registry back to seem at 1.6 and it output in the below which I looked up and it seems to be from having multiple Javas installed (leading back to my original issue):
Exception in thread "main" java.language.UnsupportedClassVersionError: ... :
Unsupported major.minor Ver. 51.0

I would appreciate any insight you all have as I hv been searching over various forums but nothing appears to have absolutely my issue. Also this has happen on other server we are using as well. Thank You!
Update: No luck with recompiling the JAR to either 1.6 or 1.7 and matching the JDK. Also why in the world would a newer Ver. of Java break an older compiled Ver.?

Get Source Code

  Views 420   Posted on : Friday, May 17, 2013 9:50:43 PM
Related Tags:

Replies on "Registry Key '…' has value '1.7', but '1.6' is required. Java 1.7 is Installed and the Registry is Pointing to it" :

Nobody has replied on this post , be first to post answer.

Post Your Answer/Comment:

Please Login first to post Reply !

Note: Please Put Code into <code></code> block.

Also See: