Java Web Programming with Eclipse contents
Last modified January 14, 2011 01:22 am
All Java code runs inside a Java Virtual machine (JVM). The system that provides the JVM is referred to as the Java Runtime Environment (JRE). A JRE is sufficient to run Java code, but it does not contain software development tools needed by developers. For this reason, we need to install the Java Development Kit (JDK), which contains both a runtime environment and developer tools.
Oracle provides the JDK in two forms: a Java 2 Standard Edition (J2SE), and a Java 2 Enterprise Edition (J2EE). The J2EE contains the J2SE within it, but also provides additional libraries, additional tools, and a J2EE Application Server. For the purposes of this book, we only need the J2SE JDK.
If Java is not already installed on your system, then you should go to Go to the Oracle website and locate the download page for the most recent release of the Java Standard Edition (SE) Software Development Kit; at the time of this writing, this was titled Java SE Development Kit (JDK) 6 Update 23. Download and install this package.
Optionally, you can install the documentation titled Java SE 6 Documentation. Alternatively, you can simply access Oracle's online version of the JDK 6 Documentation. The most important part of the documentation is the Java Platform API Specification.
Test your installation by running the java command with the version option. To do this, obtain a command prompt and execute the following.
Later procedures in the book may require creating an environmental variable called JAVA_HOME. Also, modifying the PATH variable may also be needed.