Author: danielmouse
As a friend asked me what I had to do before developing JSP, I wrote this article.
If you have any mistakes, please correct them and don't flat 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 required, and the other two are optional. I heard that Eclipse and Lomboz are also good (Eclipse is IDE,
That is, the integrated development environment. Lomboz is a plug-in of Lomboz. It is said that it is more convenient to debug JSP)
My installation directory (customizable ):
C: \ j2sdk1.4.0 _ 01
C: \ tomcat5
Specific settings (win2000 pro ):
JSDK & tomcat
My computer/properties/advanced/Environment Variables
System variable Path
Add the variable value to C: \ j2sdk1.4.0 _ 01 \ bin; C: \ tomcat5 \ bin (add before this sentence; end the previous statement)
Create a new system variable named CLASSPATH
Variable value: C: \ tomcat5 \ common \ lib;.; C: \ j2sdk1.4.0 _ 01 \ lib ;.
(Don't forget to add it later. Oh !!)
Tomcat
Edit C: \ tomcat5 \ bin \ startup. bat
Join
Set java_home = C: \ j2sdk1.4.0 _ 01
Set tomcat_home = c: \ tomcat5
Set CATALINA_HOME = c: \ tomcat5
JCreator
Menu Configure/options
Click JDK Profiles on the left menu.
Double-click j2sdk1.4.0 _ 01)
Home path is the JSDK path
Classes is a class file package.
Click ADD, add path to ADD directory PATH, and add archive to ADD File
The file to be added is as follows:
C: \ j2sdk1.4.0 _ 01 \ jre \ lib \ rt. jar
C: \ j2sdk1.4.0 _ 01 \ lib \ dt. jar
C: \ j2sdk1.4.0 _ 01 \ lib \ tools. jar
C: \ j2sdk1.4.0 _ 01 \ jre \ lib \ ext \ dnsns. jar
C: \ j2sdk1.4.0 _ 01 \ jre \ lib \ ext \ ldapsec. jar
C: \ j2sdk1.4.0 _ 01 \ jre \ lib \ ext \ localedata. jar
C: \ j2sdk1.4.0 _ 01 \ jre \ lib \ ext \ sunjce_provider.jar
C: \ tomcat5 \ common \ lib \ jsp-api.jar
C: \ tomcat5 \ common \ lib \ servlet-api.jar
Generally, after JCreator is installed for the first time, it requires you to set something.
The J2SDK directory will be found to help you add the above (just set JCREATOR),
The two JAR files of TOMCAT need to be added by yourself! In addition, jsp. jar and servlet. jar mentioned in many books
The two files I added above may have different versions, so the name is changed :)
OK! After completing the above settings, the basic settings have been completed. Just give it a try!
By the way, if necessary, some settings of WebLogic8.1 and Resin will be added (^_^ if necessary)