[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: how to set -classpath for servlet
- From: Andrew Pasquale <andrew elytra net>
- To: redhat-list redhat com
- Subject: Re: how to set -classpath for servlet
- Date: Sun Feb 9 22:25:22 2003
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
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]