Assuming you've installed the standard RPM from Apache you should find a directory /etc/tomcat4. In this directory is the configuration file tomcat4.conf -- you can specify the what you need to there. Alternately, you can create a quick script in /etc/profile.d called java.sh and specify the environmentals there like shown. Finally, use service start tomcat4 and service stop tomcat4 to start end end respectively the tomcat server.
Code
Code
Comment