多个jdk环境变量配置
时间: 2023-09-02 15:13:44 浏览: 261
在配置多个JDK环境变量时,可以按照以下步骤进行操作。首先,打开"电脑",点击右键选择"属性"。接下来,在弹出的窗口中,点击"高级系统设置"。然后,在"环境变量"对话框中,我们需要配置系统环境变量。点击"新建"按钮,输入变量名为JAVA_HOME,变量值为%JAVA17_HOME%。再次点击"新建"按钮,输入变量名为JAVA17_HOME,变量值为D:\JAVA\jdk17.0.1。同样的方法,再次点击"新建"按钮,输入变量名为JAVA8_HOME,变量值为C:\Program Files\Java\jdk1.8.0_101。
接着,在环境变量对话框中选择"新建"按钮,创建三个新的环境变量。第一个变量名为JAVA_HOME,变量值为%JAVA8_HOME%。第二个变量名为JAVA6_HOME,变量值为E:\worktools\java\Java6\jdk1.6.0_45。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [环境变量配置(同时安装多个JDK)](https://blog.csdn.net/qq_49488584/article/details/122073568)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 50%"]
- *2* *3* [同时安装多个JDK的环境变量配置及切换方式](https://blog.csdn.net/Bombradish/article/details/129086434)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文