博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Java Windows 10下载安装
阅读量:2528 次
发布时间:2019-05-11

本文共 5118 字,大约阅读时间需要 17 分钟。

Today we will learn how to download and install Java on Windows 10. If you are new to Java programming then this is the first step you need to perform. Until unless your java Windows 10 environment is set up properly, you will not be able to develop Java programs and run them successfully.

今天,我们将学习如何在Windows 10上下载和安装Java。如果您不熟悉Java编程,那么这是您需要执行的第一步。 除非正确设置了Java Windows 10环境,否则您将无法开发Java程序并无法成功运行它们。

如何在Windows 10中安装Java (How to Install Java in Windows 10)

Installing Java on Windows 10 is really easy, just follow the steps as follows:

在Windows 10上安装Java非常简单,只需执行以下步骤:

  1. 适用于Windows 10的Java下载 (Java Download for Windows 10)

  2. The first step is to download java installation files from Oracle’s website. Java 9 is the latest version, so go to and accept the license agreement. Then click on the download link for windows as shown in the below image and save the file.

    第一步是从Oracle网站下载Java安装文件。 Java 9是最新版本,因此请转到并接受许可协议。 然后单击Windows的下载链接,如下图所示,并保存文件。

    Note: If you are trying to install Java 8 or earlier, then you need to know whether your Windows 10 is 32-bit or 64-bit. It’s because there are two different installers for Windows as seen in .

    注意:如果您尝试安装Java 8或更早版本,则需要知道Windows 10是32位还是64位。 这是因为有两个不同的Windows安装程序,如 。

    If your Windows 10 is 32-bit OS then download Windows x86 exe file, else download Windows x64 exe file.

    如果您的Windows 10是32位操作系统,则下载Windows x86 exe文件,否则下载Windows x64 exe文件。

    If you are not sure of your Windows version, you can easily check it in Settings > System Settings > About.

    windows 10 java download system type

    如果不确定Windows版本,则可以在Settings > System Settings > About轻松检查它。

  3. Java Windows 10安装步骤 (Java Windows 10 installation steps)

  4. Next step is to run the downloaded java installer executable file. Just double click on it and follow the steps. Most of the time you don’t need to check anything and go with default selection, below are images from my installation screens. They might differ a little bit based on your java version installation but mostly it’s the same as usual.

    下一步是运行下载的Java安装程序可执行文件。 只需双击它,然后按照步骤进行即可。 大多数时候,您不需要检查任何内容并使用默认选择,以下是我的安装屏幕上的图像。 它们可能会因您的Java版本安装而有所不同,但大多数情况与往常相同。

  5. Windows 10版本检查中的Java (Java on Windows 10 Version Check)

  6. Finally, we have to check if java is installed properly or not. We can do that by using java -version command in command prompt, as shown in below image.

    最后,我们必须检查java是否正确安装。 我们可以通过在命令提示符下使用java -version命令来做到这一点,如下图所示。

    Note: In older java versions and other windows operating systems, you need to set up two environment variables to get it working.

    注意: 在较早的Java版本和其他Windows操作系统中 ,您需要设置两个环境变量以使其运行。

    Go to System Properties (Right Click on My Computer and select Properties) > Advanced > Environment Variables.

    转到System Properties (Right Click on My Computer and select Properties) > Advanced > Environment Variables

    In the popup window, System variables section, click on New button and add a variable with the following details:

    在弹出窗口的“系统变量”部分中,单击“新建”按钮,然后添加具有以下详细信息的变量:

    Name: JAVA_HOME

    名称:JAVA_HOME

    Value: C:\Program Files\Java\jdk1.6.0_25

    值:C:\ Program Files \ Java \ jdk1.6.0_25

    After this, you need to edit the Path variable already present there. Just select the Path variable and click on the Edit button. In the popup window value section, go to the end and add the following ;C:\Program Files\Java\jdk1.6.0_25\bin (The colon is used as a delimiter, so don’t miss that!)

    之后,您需要编辑已经存在的Path变量。 只需选择Path变量,然后单击Edit按钮。 在弹出窗口值部分中,转到末尾并添加以下;C:\Program Files\Java\jdk1.6.0_25\bin (冒号用作分隔符,所以请不要错过!)

    Now your setup is done and you can check it by opening a command prompt and running command java - version.

    现在您的设置已完成,您可以通过打开命令提示符并运行命令java - version

    In Windows 10 and Java 9, we don’t need to do these manually. Java installer takes care of that and you can check environment variable Path value, as shown in the below image. Note that we don’t need to set the JAVA_HOME variable.

    在Windows 10和Java 9中,我们不需要手动执行这些操作。 Java安装程序将解决此问题,您可以检查环境变量Path值,如下图所示。 注意,我们不需要设置JAVA_HOME变量。

  7. 下载并安装Java IDE (Download and Install Java IDE)

  8. This is an optional step but highly recommended. If you want to get things done easily, you should install either Eclipse, Intellij Idea or NetBeans IDE that helps a lot in development of java programs. Just download and install it with executable file, they are straight forward.

    这是一个可选步骤,但强烈建议您这样做。 如果您想轻松完成工作,则应该安装Eclipse,Intellij Idea或NetBeans IDE,它们对Java程序的开发有很大帮助。 只需下载并安装可执行文件即可,它们很简单。

That’s all for downloading and installing java on windows 10. Let me know if you face any issue in setting up the environment.

这就是在Windows 10上下载和安装Java的全部内容。如果您在设置环境时遇到任何问题,请告诉我。

安装Java之后会怎样 (What’s after installing Java)

Now you are ready to learn java programming, go through the articles on and learn java programming step by step.

现在,您准备学习Java编程,阅读有关的文章,并逐步学习Java编程。

Note: A few years back, I made this video to install java 8 on windows 10. Steps are still almost the same so you can watch it to get more ideas about it.

注意:几年前,我制作了此视频,以在Windows 10上安装Java8。步骤仍然几乎相同,因此您可以观看它以获得更多有关它的想法。

Also if you want to have multiple java versions and want to switch between them easily, then go through this short 2-minute video.

另外,如果您想拥有多个Java版本并希望在它们之间轻松切换,请观看这​​段2分钟的简短视频。

翻译自:

转载地址:http://raozd.baihongyu.com/

你可能感兴趣的文章
【strtok()】——分割字符串
查看>>
Linux下安装rabbitmq
查看>>
曹德旺
查看>>
【转】判断点在多边形内(matlab)
查看>>
java基础之集合:List Set Map的概述以及使用场景
查看>>
Python 线程 进程 协程
查看>>
iOS语言中的KVO机制
查看>>
excel第一次打开报错 向程序发送命令时出错 多种解决办法含终极解决方法
查看>>
响应式web设计之CSS3 Media Queries
查看>>
实验三
查看>>
机器码和字节码
查看>>
环形菜单的实现
查看>>
【解决Chrome浏览器和IE浏览器上传附件兼容的问题 -- Chrome关闭flash后,uploadify插件不可用的解决办法】...
查看>>
34 帧动画
查看>>
二次剩余及欧拉准则
查看>>
Centos 7 Mysql 最大连接数超了问题解决
查看>>
thymeleaf 自定义标签
查看>>
关于WordCount的作业
查看>>
C6748和音频ADC连接时候的TDM以及I2S格式问题
查看>>
UIView的layoutSubviews,initWithFrame,initWithCoder方法
查看>>