Day: September 23, 2024

Install Apache Tomcat

Install tomcat yum install tomcat   Start servce service tomcat start sample page download cd /usr/share/tomcat/webapps wget https://tomcat.apache.org/tomcat-7.0-doc/appdev/sample/sample.war   access sample page from web browser http://xx.hiyokotech.com:8080/sample/   javac install yum search jdk-devel yum install java-1.8.0-openjdk-devel   compile servlet javac -classpath /usr/share/java/tomcat-servlet-api.jar xx.java     Japanese code response.setContentType(“text/html; charset=UTF-8”);

Translate »