3

I have JRE 6 and JRE 7 both installed on my Windows 7 workstation. I want to set the default Java to JRE 6.

I've tried setting the JAVA_HOME variable to C:\Program Files (x86)\Java\JRE6\bin and I've also tried messing with the registry.... none of these are working for me

I don't want to uninstall and i don't want to use the GUI control panal Java Console to disable JRE 7.

I need to automate a way to set JRE 1.6 as the default java?

1
  • As the jre is used mainly by the browsers and they search the current version in registry I think you should see what was a a problem with editing registry values.The version (if the machine is 64 bit) is written n \HKLM\SOFTWARE\Wow6432\JavaSoft\Java Runtime Environment\CurrentVersion and you just need to set the version ot 1.7 Commented Oct 22, 2012 at 13:25

2 Answers 2

1

You should set the /bin/java (java.exe in MSWindows) in your path and put in in the first place.Steps 16, 17, and 18

Sign up to request clarification or add additional context in comments.

Comments

0

JAVA_HOME should point root folder of java e.g. C:\Program Files (x86)\Java\JRE6. Please try.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.