Scene
Different JRE is required for simultaneous deployment of different projects on the same server
Environment
Demand
- User admin needs to use jdk1.8
- User admin1 need to use jdk1.7
Solve
By configuring User Environment variables , setting system environment variables will result in the same environment variables for the user (System environment variables > user Environment variables)
Review the Java environment variable configuration
- Java_home:
C:\Program Files (x86)\Java\jdk1.8.0_91(自己jdk目录)
- Path:
%JAVA_HOME%\bin;%JAVA_HOME%\jre\bin;
- Class_path:
.;%JAVA_HOME%\lib\dt.jar;%JAVA_HOME%\lib\tools.jar;
* Variable name capitalization does not affect
To user admin configuration
Admin1 Configuration for users
CSDN Sync Address: http://blog.csdn.net/www52limingcom/article/details/79435270
Configure different JDK (win) for multiple users based on environment variables