Wednesday, 15 April 2015

java - Changing between Java8 and Java7 Environments -


I'm trying to change the environment of Java 7 and Java 8. I created the following new environment variables:

  java7_home - java 7 Location javv8_home - java 8 Location javva_home  

I then JAVA_HOME to% JAVA8_HOME%% JAVA7_HOME% . The way I

 % JAVA_HOME% \ bin; The rest of the path  

It looks like I will not change no matter what the result is to set JAVA_HOME to the Java-version, even new sessions .

How can we easily get two different Java environments while changing between them? I have tried to set up in all the right paths, which include:

  HKEY_CURRENT_USER \ Environment JAVA_HOME HKEY_LOCAL_MACHINE \ SOFTWARE \ Jawasaft \ Java Runtime Environment Chaluvshcian  

and even that version to replace simplex we want to point it. We have created batch scripts to do all this, we have made PowerShell / Net, have tried to do it and then broadcast, install it and restore the Explorer. It seems impossible to switch between 7 and 8.

Does anyone have an idea to solve this idea?

The basic problem is that the command line is not permanent due to some reason you set a new value through the UI Will happen.


No comments:

Post a Comment