Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Setting default JRE version via batch file

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?

like image 356
Joe Brown Avatar asked Jul 02 '26 14:07

Joe Brown


1 Answers

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

like image 61
PbxMan Avatar answered Jul 04 '26 04:07

PbxMan