Author: danielmouse
I wrote this article because my friend asked me what I should do before developing JSP.
If any expert makes a mistake, please correct me and don’t blame me! :)
Preparation software:
j2sdk-1_4_0_01-windows-i586.exe -----JSDK JAVA Development Kit
jakarta-tomcat-5.0.18.zip -----TOMCAT5 server
jcpro300.zip -----JCREATOR3.0 JAVA compilation tool
j2sdk is a must, and the other two are optional. I heard that Eclipse plus Lomboz is also good (Eclipse is an IDE,
That is, the integrated development environment, Lomboz is a plug-in of it. It is said that debugging JSP is more convenient)
My installation directory (customizable):
C:j2sdk1.4.0_01
C:tomcat5
specific settings (win2000 pro):
JSDK & tomcat
My Computer/Properties/Advanced/Environment Variables
System variablePath
The variable value is added to C:j2sdk1.4.0_01bin;C:tomcat5bin (add; in front of this sentence to end the previous sentence)
Create a new system variable named CLASSPATH.
Variable value C:tomcat5commonlib;.;C:j2sdk1.4.0_01lib;.
(Don’t forget to add. at the end!!)
tomcat
Edit C:tomcat5binstartup.bat
join in
set java_home=C:j2sdk1.4.0_01
set tomcat_home=c:tomcat5
set CATALINA_HOME=c:tomcat5
JCreator
MenuConfigure/options
Click on the left menu JDK Profiles
Double-click j2sdk1.4.0_01 (create a new one if not available)
Home path is the JSDK path
Classes is a class file package
Click ADD, ADD PATH is to add the directory path, ADD ARCHIVE is to add the file
The following are the files to be added:
C:j2sdk1.4.0_01jrelibrt.jar
C:j2sdk1.4.0_01libdt.jar
C:j2sdk1.4.0_01libtools.jar
C:j2sdk1.4.0_01jrelibextdnsns.jar
C:j2sdk1.4.0_01jrelibextldapsec.jar
C:j2sdk1.4.0_01jrelibextlocaledata.jar
C:j2sdk1.4.0_01jrelibextsunjce_provider.jar
C:tomcat5commonlibjsp-api.jar
C:tomcat5commonlibservlet-api.jar
Generally speaking, the first time you install and run JCreator, it will ask you to set some things. Generally, it will find the J2SDK directory by itself and help you add the above things ( It’s just JCREATOR’s settings), but
The two JAR files of TOMCAT need to be added by yourself! In addition, jsp.jar and servlet.jar are mentioned in many books
The two files I added above may have changed their names because of different versions:)
OK! After completing the above settings, the basic settings have been completed. Try it yourself!
By the way, if necessary, I will add some settings for WebLogic8.1 and Resin in the future (if necessary^_^)