Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / August 2006

Tip: Looking for answers? Try searching our database.

install tomcat

Thread view: 
sibuea - 28 Aug 2006 17:18 GMT
Hi,

I just installed tomcat 4.1
When I tried to compile a servlet, there was an error like
javax.servlet.http not exist.
I think it's probably because I haven't setup the classpath.

Do you know how to set it up?

Thanks
RS
Arne Vajhøj - 28 Aug 2006 23:43 GMT
> I just installed tomcat 4.1
> When I tried to compile a servlet, there was an error like
> javax.servlet.http not exist.
> I think it's probably because I haven't setup the classpath.
>
> Do you know how to set it up?

(assuming Windows)

Have a JDK (not a JRE) installed.

Have JDK bin dir in PATH.

Take the ZIP not the installer.

Unzip in a dir with no spaces ind.

And run.bat should start Tomcat.

Arne
William Brogden - 29 Aug 2006 21:13 GMT
> Hi,
>
[quoted text clipped - 7 lines]
> Thanks
> RS

In order to compile servlets you must include the servlet.jar
library on your classpath. In Tomcat 4.1 it is in the
 TOMCAT_HOME/common/lib directory

Tomcat 5 calls this file servlet-api.jar

Bill


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.