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

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.

主站蜘蛛池模板: 璧山县| 平乐县| 靖江市| 翁牛特旗| 彭州市| 绥阳县| 四平市| 五华县| 麻阳| 五家渠市| 昆明市| 金寨县| 濮阳市| 台山市| 元江| 抚远县| 永城市| 邯郸县| 华亭县| 巨鹿县| 荆门市| 高安市| 琼结县| 大足县| 桂平市| 虞城县| 平湖市| 琼海市| 温州市| 安阳市| 巨鹿县| 庐江县| 大同县| 信阳市| 正安县| 合川市| 洪江市| 清镇市| 武强县| 磴口县| 偃师市|