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

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.
主站蜘蛛池模板: 贵阳市| 玛曲县| 辉县市| 柞水县| 东乌| 伽师县| 韩城市| 巴青县| 黔西县| 清水县| 揭东县| 平南县| 卫辉市| 海伦市| 潞城市| 迁安市| 洛川县| 南昌县| 阿瓦提县| 南丰县| 石楼县| 周口市| 石屏县| 霍林郭勒市| 仁寿县| 吉林市| 抚州市| 焦作市| 柘荣县| 光山县| 南安市| 双峰县| 芒康县| 左贡县| 锡林浩特市| 永城市| 湘乡市| 新蔡县| 衡东县| 乾安县| 娄烦县|