This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
running_tomcat [2010/11/04 22:23]
stiber [Running Apache Tomcat]
running_tomcat [2010/12/09 20:35] (current)
Line 1: Line 1:
-{{tag>​tomcat apache java jess css482}}+{{tag>​tomcat apache java jess css482 ​howto}}
 ====== Running Apache Tomcat ====== ====== Running Apache Tomcat ======
Line 58: Line 58:
 javac -classpath ../​../​../​../​lib/​jess.jar;​../​../​../​../​lib/​servlet-api.jar *.java javac -classpath ../​../​../​../​lib/​jess.jar;​../​../​../​../​lib/​servlet-api.jar *.java
 </​code>​ </​code>​
 +If you get the example code from the textbook web site (accessible from the [[http://​courses.washington.edu/​css482/​|CSS 482 web site]], keep the ''​.class''​ files in the project directory, and are working on Linux or OS X, you can use the following modified ''​Makefile''​ to ease recompilation and reinstallation of your code:
 +.SUFFIXES:​ .java .class
 +build: HelloJess.class Hello.class
 + $(JAVAC) -classpath .:​$(JAVA_HOME)/​jre/​lib/​rt.jar:​$(CATALINA_HOME)/​lib/​servlet-api.jar:​$(JESS) $<
 +install: build
 + cp *.class $(CATALINA_HOME)/​webapps/​$(APPNAME)/​WEB-INF/​classes
 + rm -f *~ *.class
 +You will need to change ''​CATALINA_HOME''​ to be your tomcat installation directory (''​$(HOME)''​ refers to your home directory). After you edit a ''​.java''​ file, you can recompile and reinstall the new ''​.class''​ file using:
 +make install

The best way to find something here is to use the search box in the upper right or the site index link below.

Mobile QR Link