26 มิ.ย. 2555

Install tomcat on window

Install tomcat server for use war file Generate by Java

1. Download Tomcat 6  http://tomcat.apache.org/download-60.cgi
 and extract zip file to drive C:\Program Files

2. Download Java JDK (Java SE 6 Update 33) http://www.oracle.com/technetwork/java/javase/downloads/index.html
 and install set JAVA_HOME by path of JDK "C:/Program Files/java/jdk/" not JRE

3. After install Java use "cmd" go to "~/tomcat/bin" and "service.bat install" in "cmd" 
Go to Control Panel Adminstrator Tools -> Service and Start "Apache Tomcat Server" open http://localhost:8080 or http://127.0.0.1:8080 Work!! 
but don't  open  try to close Window Firewall

4. Copy war file "yourservice.war" to C:\Program Files\apache-tomcat-6\webapps and url:http://localhost:8080/yourservice

SET Encoding for Tomcat Window

Try setting the (Windows) environment 

variable JAVA_TOOL_OPTIONS to -Dfile.encoding=UTF-8and 

start the Tomcat Server.

ไม่มีความคิดเห็น:

แสดงความคิดเห็น