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

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.
主站蜘蛛池模板: 宜昌市| 页游| 桃源县| 监利县| 万安县| 泰和县| 嘉黎县| 商水县| 泌阳县| 缙云县| 安溪县| 子长县| 民勤县| 饶平县| 沾益县| 万荣县| 中牟县| 英吉沙县| 惠州市| 报价| 永康市| 荥经县| 辛集市| 喀喇沁旗| 阿克| 镶黄旗| 清流县| 德钦县| 夏河县| 准格尔旗| 嘉义市| 和硕县| 酉阳| 两当县| 大关县| 乡宁县| 邢台县| 德令哈市| 吴川市| 张家界市| 濮阳市|