HomeApache Page 2 - Preparing the Workspace for Apache Tapestry
JDK - Apache
In the previous article of this series I explained, in the historical perspective, why Tapestry is a very attractive and advanced framework for building Java Web applications. Now we are moving from theory to practice. But before doing anything, we need to prepare the workplace.
Before installing a JDK, first of all please check to see whether you have installed it already. To do this, try to invoke the Java compiler. Open a command prompt or a console window and enter the following command:
javac -version
If your computer replies similar to this:
C:>javac -version
javac 1.5.0
javac: no source files
Usage: javac <options> <source files>
where possible options include:
... other output goes here ...
then you already have a JDK. Still, check the version. Although Tapestry can work with a version of JDK as low as 1.3, we are going to use annotations in these tutorials, and annotations appeared in version 1.5 only.
If however your computer replies that javac isn't a recognized command, or your version is lower than 1.5, you need to install an appropriate JDK.
Here you have two options: to download and install JDK itself (the current version is JDK 6) or download and install JDK together with NetBeans IDE (currently JDK 6 with NetBeans 5.5). The latter makes sense if you agree with my suggestion to use NetBeans as the IDE for this tutorial.
The JDK + NetBeans package is available for Windows, Linux and Solaris only, not for Mac OS X, but Macs have a JDK already installed on them anyway.
If your Mac came with JDK 1.4.2 or earlier on it, please check the Java FAQ at Developer.apple.com (http://developer.apple.com/java/faq/) to find out how to upgrade to a higher version.
After downloading a JDK, please follow the provided installation instructions specific to your platform. Or ask me at the discussion page if you have any difficulties.
If you are installing JDK together with NetBeans, simply accept all the default options during the installation.