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

Installing the Java SDK

First and foremost, we will install Java SDK. We will work with Java 8 throughout this book. Go ahead and access this page (http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html). Download the appropriate JDK kit. For Windows/Linux, there are two different versions--one for x86 and another for x64. One should select the appropriate version, and download the appropriate installable file. Once downloaded, double-click on the executable file for Windows, or unTAR and install appropriately for Linux. The instructions for installing Java on Linux can be found on this page (https://docs.oracle.com/javase/8/docs/technotes/guides/install/linux_jdk.html).

The following instructions help one install Java on Windows OS. Double-clicking on the EXE file would start the installer. Once installed, the following needs to be done:

  1. Set JAVA_HOME as the path where JDK is installed. 
  2. Include the path in %JAVA_HOME%/bin in the environment variable. One can do that by adding the %JAVA_HOME%/bin directory to his/her user PATH environment variable--open up the system properties (Windows key + Pause), select the Advanced tab, and the Environment Variables button, then add or select the PATH variable in the user variables with the value.

Once done with the preceding steps, open a shell and type the command java -version. It should print the version of Java you installed just now.

Next, let us try and understand how to install and configure Maven, a tool for building and managing Java projects. Later, in the coming chapters, we will deal with Spring Boot, which uses Maven to create boilerplate web applications.
主站蜘蛛池模板: 大埔县| 蛟河市| 壶关县| 辉县市| 兴宁市| 肥城市| 安达市| 黎城县| 泸州市| 凤台县| 东乡族自治县| 永川市| 宜城市| 惠安县| 晋中市| 新乡县| 西乡县| 东辽县| 汤阴县| 隆尧县| 瓮安县| 天门市| 库车县| 五常市| 邵阳市| 修文县| 太保市| 巍山| 广饶县| 江津市| 宜城市| 铜陵市| 高碑店市| 长垣县| 石台县| 富裕县| 老河口市| 长汀县| 阿图什市| 天津市| 巴马|