简体   繁体   English

安装JDK和JRE时出现问题

[英]Problem installing JDK and JRE

在此输入图像描述 I have some problem installing JDK and JRE. 我在安装JDK和JRE时遇到了一些问题。 i am following this website http://www3.ntu.edu.sg/home/ehchua/programming/howto/JDK_Howto.html . 我关注这个网站http://www3.ntu.edu.sg/home/ehchua/programming/howto/JDK_Howto.html

I am stuck at step 3 where i need to edit the path environment variable. 我陷入第3步,我需要编辑路径环境变量。 I am using Windows 7 and i can't see the advanced tab. 我正在使用Windows 7,我看不到高级选项卡。

Btw, is it neccessary to change the environment variable? 顺便说一句,是否需要更改环境变量?

I haven't got Windows 7 in front of me at the moment, but I'm sure that by right-clicking on My Computer and selecting Properties that you can access the Advanced System Properties somewhere on that page; 我目前还没有在我面前安装Windows 7,但我确信通过右键单击“我的电脑”并选择“属性”,可以访问该页面某处的“高级系统属性”; and then make the appropriate setting suggested by the link you posted. 然后根据您发布的链接进行适当的设置。

I'm sorry if these are unclear or not possible to do. 如果这些不清楚或无法做到,我很抱歉。

For Windows 7 via the Control Panel: 对于Windows 7,通过控制面板:

  1. Click Start -> Control Panel 单击开始 - >控制面板
  2. Click "System and Security", the top left option 单击左上角的“系统和安全性”选项
  3. Click "System", third from the top 单击“系统”,从顶部开始第三个
  4. On the left, find "Advanced system settings" at the bottom of the list 在左侧,找到列表底部的“高级系统设置”
  5. Click "Environment Variables..." button near the bottom of the dialog 单击对话框底部附近的“环境变量...”按钮

and now you're to the "In 'System Variables' box" step of the page you linked. 现在,您将转到所链接页面的“In'系统变量”框中。 Note: You can skip over steps 1-3 by opening the Start menu, right clicking "Computer", and going to "Properties". 注意:您可以通过打开“开始”菜单,右键单击“计算机”,然后转到“属性”来跳过步骤1-3。

It's quite possible you don't need to edit the path. 你很可能不需要编辑路径。 Any IDE worth its salt will let you choose which JDK to use, depending on your target JRE. 任何值得盐的IDE都会让您选择使用哪个JDK,具体取决于您的目标JRE。 It's pretty rare that I need to invoke Java from the command line - when I do it's most often through a .bat file that points to java.exe anyway. 我很少需要从命令行调用Java - 当我这样做时,最常见的是通过指向java.exe的.bat文件。

If you really need your path set in Windows 7, left-click on the Windows circle in the bottom left of the screen (is it still refered to as the "start" button?), right-click on Computer, then select Properties from the menu. 如果您确实需要在Windows 7中设置路径,请左键单击屏幕左下方的Windows圈(它仍然被称为“开始”按钮?),右键单击“计算机”,然后从中选择“属性”。菜单。

On the dialog that appears select the Advanced tab, then click the button labeled "Environment Variables" at the bottom of the screen. 在出现的对话框中选择“高级”选项卡,然后单击屏幕底部标有“环境变量”的按钮。 It's there you can edit your path. 它就在那里你可以编辑你的路径。

If you have a command prompt open you'll need to close it and re-open for the changes to take effect. 如果您打开命令提示符,则需要将其关闭并重新打开以使更改生效。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM