Show Some Love

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

This forum was posted on Friday, May 17, 2013 9:50:43 PM

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.?

630 Viewed this Question

 Recent 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 Solution for this Question

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

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

Highlight a string according to given line number in JtextArea

do you know ny function I can use to actually pass a line number and the string to highlight the word in that line number. I got no clue on How do I achieve this. Am capable to load my File on the JtextArea.The File am loading "Hello.txt" having:Hello Thisis my firstlesson in JavaHope you have a nice Time.i require the function to highlight string "first" in line 1.My Codes:import javax.swing.*; import java.util.*; import*; public class OpenTextFileIntoJTextArea { public stati

How to extract commonality from two classes.. template method?

I hv two classespublic class ABC { public void test() { Car a = new Car(); a.start(); }}public class DEF { public void test() { Car a = new Car(); a.start(); a.stop(); }}Now both these classes do very much the similar thing how can extract out the commonality or what's the best approach.. would a template method work.. where by i use an interface... and have one parent method that calls an abstract method that is designed on the subclasses?... but that would mean that one class has a no opera

Resteasy PostProcessInterceptor after ResteasyJacksonProvider

We have a Resteasy webservice.I use Jackson provider for JSON both outgoing JSON in o/p and incoming JSON in request.Is it possible to have a PostProcessInterceptor to be executed after JSON-Jackson serialization?My PostProcessInterceptor has to change the JSON content for every outgoing o/p. But when the PostProcessInterceptor is executed if I print the entity o/p.getEntity().toString(); I see the toString method of the java.language.Object not the JSON String. That is becoz the Obje

How does scalding pass user functions to remote MapReduce nodes

When working with Scalding you have the ability to provide a function. I was shocking how scalding passes these functions to the remote map/reduce tasks? Is this using something in scala or something generic that can be done with anonymous objects?

String Expansion Utility

I appear to recall an Apache Commons or similar API that would permit you to replace a string inline using feature expansion similar to how Freemarker or Velocity (or a JSP container for that matter) accomplish this without having to drag in those tools. Can anyone recall what this API is? definitely the names are incorrect but the construct appears something like this:Person person = ...;String expanded = SomeAPI.expand( "Hi ${name} you are ${age} years old today!" person);I am

Switching between Panels in a single JFrame Java Games

I am trying to generate a game where the player will be capable to click on characters on the screen and initiate a puzzle.I hv made a GameView (shows the characters) and ClickableGames (hold the puzzles) class that both extends a JPanel.I hv an Image class that has the JFrame in.i wish to ideally have my GameView class initiate the ClickableGames when a char is clicked on from within the GameView there any approach to do this?Or would I hv to do it in my Image class?Also would i

Wicket - render something before onSubmit

How is it possible or what's the best approach to render something before the all request cycle of my AjaxButton onSubmit() is finished.I try to set a Progressbar visible just after the user clicked on the AjaxButton do little internal work and after the work is finished i wish to set other o/p page. But the page get only rendered after all things are done in the onSubmit-method.i wish to show the Progressbar just after clicking the button and the handling of the internal work and the r

Painting a JPanel hides menu

I hv a JPanel on which custom painting is performed which can take upto 15 seconds.The problem is that when I click on a menu while the while the JPanel is being painted the painting is being done over the menu and the options are not visible. ( See the distorted text in picture )If I click on the menu after the painting is completed There is no unwanted behavior but when I move the mouse pointer onto a various menu the similar thing occurs again.For illustration after the completion of painti

How do I right align a search bar in a Java SWT Unified ToolBar (OS X)

How would one go about to align an item to the right in a Java SWT unified toolbar under OS X? I don't wish to align all the items to the right but rather just the search field. The issue marked as a duplicate does not solution this but rather just how you align all toolbaritems to the right with a "common nonunified toolbar" hence it's not the similar problem.Also if someone knows how I can use the system buttons from finder for view back and forward it would be much apprised as I

Queue implementation constructor error JAVA

Can anyone tell me why i get an error saying Implicit super constructor Node() is undefined. Must explicitly invoke other constructorI'm aware in little cases eclipse gives this error when There is a mix of Java compiler Ver. with the code snippet snippet but this is not the case for me. Here is my code snippet snippet and the error is in the Queue2 class at the Queue2 constructor.import java.util.NoSuchElementException;public class Queue2 extends Node { private Node head; private Node tail; // best practic