On Sat, Feb 08, 2003 at 09:40:01PM -0500 or thereabouts, Jianping Zhu wrote: > I have redhat 7.3 with apache-tomacat on it. I have install everything. > The problem is when compile java document by using > I got > -------------------------------------------------------------- > [root@mango servlet]# javac HelloServlet.java > HelloServlet.java:2: package javax.servlet does not exist > import javax.servlet.*; > ^ <snip> > how can i make some change to let " javac Hellervlet.java" in this case > work? >
You can set the CLASSPATH using the following in bash: $ export CLASSPATH=${CLASSPATH}:/path/to/servlet.jar However, if you are planning to do anything more complicated than Hello World, I would reccomend looking at Jakarta Ant project, which is a really nice tool to build and deploy your projects. http://ant.apache.org Good luck -- Andrew Pasquale -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe https://listman.redhat.com/mailman/listinfo/redhat-list