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

Time for action - installing a JDK

There are several versions of the Java Development Kit. In this exercise we're going to install the Java SE Development Kit 6, the most up-to-date version of the JDK at the time of this writing.

  1. If you have an open web browser window from the previous exercise, go to http://java.sun.com/javase/downloads/index.jsp and look for the most recent Java SE Development Kit (JDK) version:
    Time for action - installing a JDKWindows environmentJDK, installing
  2. Click on the Download button to start downloading the JDK 6 to your computer. You'll need to provide some information about your operating system, as shown in the following screenshot:
    Time for action - installing a JDKWindows environmentJDK, installing

    Note

    As with the Apache installation exercise, it doesn't matter if you download JDK 6 Update 13 or a more recent update; just be sure it's the JDK SE 6 version.

  3. Select Windows in the Platform drop-down list. Select I agree to the Java SE Development Kit 6 License Agreement and click on Continue.
  4. Scroll down to the Available Files section on the next web page, and click on the jdk-6u13-windows-i586-p.exe link:
    Time for action - installing a JDKWindows environmentJDK, installing
  5. Click on the Save button in the Opening jdk-6u13-windows-i586-p.exe dialog to start the downloading process. When finished, go to the directory where you downloaded the JDK file and double-click on it to start the installation process.
  6. Click on the Run button in the Open File - Security Warning dialog. After a few seconds, the JDK License Agreement window will appear. Click on the Accept button to continue.
  7. Leave the default settings in the Custom Setup dialog and click on Next to continue. The Java SDK Install Wizard will begin to install the Java SDK on your computer. Wait until the Destination Folder shows up, stick with the default destination folder option and click on Next to continue. The JDK Install Wizard will continue the installation process.
  8. Click on the Finish button when the installation wizard shows the JDK Successfully Installed screen.
  9. To test your Java installation, open a Command Prompt window and type java -version at the system prompt. You should receive the following output:
    Time for action - installing a JDKWindows environmentJDK, installing
  10. Type exit in the command prompt to close this window.

What just happened?

Is Java easy to install on Windows, or not? As you can see from the previous exercise, the JDK installation process is pretty straightforward, and you don't need to change any default option. It's ready to work out of the box!

With the JDK, you can learn basic Java programming without needing anything else, just the Notepad text editor and the Java compiler javac. So, once you get comfortable working with Apache Roller and your blog, maybe you can learn Java and make contributions to the Roller project, how about that?

Let's see further! We've installed Apache and the JDK. Now guess what? It's "Tomcat time"!

Tomcat servlet engine

Now it's Tomcat's turn on the stage. This open source servlet engine, also known as a Java Application Server, is the heart that drives Apache Roller. Tomcat needs the JDK to run on Windows, Linux, or any other operating system with Java support. Moreover, the big advantage of using Java applications is that you don't need to rewrite code, so that they can work on different operating systems. This applies to Apache Roller also, because the same files are used both in Windows and Linux. However, for now, let's focus on the Tomcat installation.

主站蜘蛛池模板: 承德县| 华阴市| 肥城市| 旌德县| 嘉善县| 双辽市| 彝良县| 汉源县| 延庆县| 东乌珠穆沁旗| 绥宁县| 万山特区| 宁远县| 靖安县| 房产| 深圳市| 铁岭县| 通州区| 武陟县| 富顺县| 英吉沙县| 都江堰市| 会泽县| 得荣县| 鹰潭市| 甘南县| 光泽县| 平泉县| 阿勒泰市| 福海县| 巴彦县| 伊吾县| 上犹县| 瓮安县| 罗江县| 通道| 阳新县| 勃利县| 讷河市| 将乐县| 永丰县|