官术网_书友最值得收藏!

Installing JDK

To start off this process, let's download a Java Development Kit (JDK) or a Java SDK. This kit contains libraries and executables that allow us to do lots of different things with Java code. Most importantly, with our SDK installed, we'll be able to compile Java code and then run completed Java programs.

You may already have Java installed on your machine; however, unless you've done this explicitly, you probably haven't installed a Java SDK. The version of Java an average user has installed on their machine is called the Java Runtime Environment (JRE). This allows the execution of Java programs, and Java programs won't run on environments without the JRE installed. But the JRE doesn't contain any real development tools, which we're going to need. The good news is that a Java JRE and a Java SDK can exist harmoniously. A Java JRE is really just a subset of the SDK, so if we only have the Java Development Kit installed, which we're about to download, we're going to be fine.

If you have downloaded the Java Development Kit in the past, when you actually go to install this kit, Java will let you know that it's already installed and you can skip that portion of the section. For everyone else, check out how to download a development kit:

  1. To begin with, navigate to www.oracle.com/technetwork/java/javase/downloads/index.html through your browser.
  1. We're going to be using the Java SE, or Standard Edition, Development Kit maintained by Oracle. To acquire this kit, simply go to the Downloads tab, and express that we would like the JDK by selecting that option:

Scroll down, check out the license agreement, accept the license agreement, and then download the version of the SDK that's appropriate for your operating system. For me, that's jdk-8u144-windows-x64.exe, listed at the end:

  1. Once your download is complete, install it as we would any other program. Choose the default options when appropriate and make sure to take note of the directory to which we will install our development kit.
主站蜘蛛池模板: 克什克腾旗| 霸州市| 天峨县| 四平市| 郁南县| 贵港市| 麻江县| 祁阳县| 肥东县| 涞源县| 武川县| 叶城县| 志丹县| 封开县| 桐乡市| 延安市| 兴国县| 文安县| 济阳县| 余干县| 彰化县| 上思县| 昂仁县| 德保县| 密云县| 若尔盖县| 京山县| 浦江县| 岢岚县| 株洲市| 渑池县| 轮台县| 新余市| 寻甸| 株洲市| 怀宁县| 视频| 梁山县| 敦煌市| 秭归县| 慈利县|