Configure different JDK (win) for multiple users based on environment variables

Source: Internet
Author: User

Scene

Different JRE is required for simultaneous deployment of different projects on the same server

Environment
    • Windows Server 2008
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
    • Configuring Java_home and Path

    • Inspection

Admin1 Configuration for users
    • Configuration
    • Inspection

CSDN Sync Address: http://blog.csdn.net/www52limingcom/article/details/79435270

Configure different JDK (win) for multiple users based on environment variables

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.