Download Setting up Development Environment for JSP Projects on Windows | CEN 3031 and more Study Guides, Projects, Research Software Engineering in PDF only on Docsity! Setting up Development Environment for JSP projects on Windows You need: A Java 2 runtime environment (JRE) or Java 2 Software Development Kit (J2SDK). We recommend JDK 1.4.2 Tomcat from the Jakarta Project's Tomcat download page. We recommend Tomcat 5.0.x. (For Windows 98/ME/XP/2000, you can download Tomcat 5.0.28). Eclipse from http://www.eclipse.org/downloads/index.php, For Windows 98/ME/XP/2000, you can download Eclipse 3.0.1 Tomcat plugin by Sysdeo in the version 3.0. (Optional) JSP editor plugins. Install JDK 1.4.2 Download JDK package from java.sun.com. Install the JDK in a directory with a name that contains no spaces, such as JDK1.4.2. (Tomcat will not be able to call the Java compiler if the directory path to the Java compiler includes spaces). Set an environment variable JAVA_HOME from the Control Panel – System – Advanced- Environment Variables. The environment variable JAVA_HOME tells Tomcat where to find your JDK. Make sure the path to your JDK is added to the environment variable CLASSPATH. Install Tomcat Download Tomcat 5.0.28 and install it. After install Tomcat, navigate to the "bin" directory and start Tomcat by running the startup.bat file. You must have the JDK installed before you can start Tomcat. Make sure you have set the environment variable JAVA_HOME. The environment variable JAVA_HOME tells Tomcat where to find your JDK. Another way to tell Tomcat where to find your JDK is to modify the file tomcat.bat in the bin directory. Simply add a line at the beginning of the file to point to your JDK installation. For example, if you installed the JDK in the c:\jdk1.4.2 directory, you would write: SET JAVA_HOME=c:\jdk1.4.2 After starting Tomcat, open your browser and type the following URL: http://localhost:8080. Tomcat uses port 8080 by default, so make sure that port is not being used by another server, such as Internet Information Server (IIS). If there is a port conflict, you can change Tomcat's default port by modifying the file server.xml in the conf directory. Search for the number 8080 in the file and change it to an unused port number. When Tomcat starts successfully, you will see an introduction page in your browser. There are two links towards the middle of the page pointing to Servlet and JSP examples. You should click on a few examples to make sure everything is working correctly. More detail information can be found in http://www.devx.com/webdev/Article/16416/0/page/1 .