First announce my machine environment:
Windows2000 Advance Server
Download a Jakarta-Tomcat-5.5.4.tar.gz that you can use directly on the official website.
I will decompress it in the D disk,
Then download a J2SDK-1_4_2_06-Windows-I586-P.exe
Java environment installed
But there is always a mistake,
Error prompt is
(1)
"
Find
Do not
Until
file-
Djava.
Endorsed.
DIRS = "(or one of the other components) Please determine if the path and file name are correct
And the required library
Files are available. "
The solution is:
Setting at system environment variables
Control Panel -> System -> Advanced -> Environment Variables -> System Variables
Add Java_Home D: / J2SDK
Add Tomcat D: / Program Files / Tomcat
In addition, in the BIN of the Tomcat directory, add the following in the Startup.bat file.
Set java_home = d: / j2sdk
Join position after the following code
@echo offif "% os%" == "windows_nt" setLocalRem -------------------------------------------------------------------------------------------------------------------- -------------------------------------- Rem Start Script for the catalina ServerRemRem $ ID: Startup .bat, v 1.6 2004/05/27 18:25:11 YoAVS EXP $ remote ------------------------------- --------------------------------------------
Rem guess catalina_home if not definedset current_dir =% CD%
IF not "% catalina_home" == "" goto gothomeset catalina_home =% current_dir% if exist "% catalina_home% / bin / catalina.bat" goto okhomecd ..set catalina_home =% CD% Add set java_home ......
(2)
Later, there is a problem
Solving this method is:
Re-downloaded a jakarta-tomcat-5.5.4-compat.tar.gz
Copy the file in the corresponding location
In IE input
Http: // localhost: 8080 / The welcome interface should be successful,
If you can't do it, you can't change your server, you can use RESIN, save trouble.
Also, if used for WAP development, see if these settings are added.
The version of Tomcat5.0 generally has supported WML. If you don't support it, modify Catalina_Home / Conf / Web.xml. Add the following information on the MIME mapping section:
Ok, finish!