You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Steve Weiss <st...@bonampak.org> on 2000/12/05 04:54:40 UTC

Re: Problems Setting up new Tomcat3.2 installation with jdk1.3

It looks like you need to add <path-to-tomcat>/lib/servlet.jar to your 
classpath.

-S

Mark Koscak wrote:

> I have encountered some problems setting up Tomcat on a development 
> Linux system. If anyone could throw up some suggestions I would be most 
> appreciative.
> 
> I have installed Tomcat3.2 and I can run the sample servlets and jsp 
> applications after I have started the tomcat server.
> 
> My problem is that I can't compile the simple Hello.java application in 
> the sample directory e.g.
> 
> [mark@netdev src]$ javac Hello.java
> 
> Hello.java:98: Can''t find method "setContentType(java.lang.String)"
> 
> [mark@netdev src]$
> 
> Also the interfaces and other code defined in 
> /usr/local/jakarta-tomcat/src/javax have NO associated class objects? 
> Yet on the other machine with the same configuration I can run the 
> sample applications and compile new servlets.
> 
> The machine that does allow me to compile apps now runs jdk1.3, but was 
> previously running jdk1.1.7, also this machine has class objects in the 
> /usr/local/jakarta-tomcat/src/javax directory.
> 
> If you need it here are some of the steps I have taken and my system 
> settings, related to the installation of tomcat.
> 
> Here are the steps I have taken.
> 
> Downloaded the latest stable version of Tomcat --> jakarta-tomcat.tar.gz
> 
> I have run tar and extracted tomcat to /usr/local
> 
> The resultant directory structure is
> 
> C:\jakarta-tomcat\bin
> 
> \conf
> 
> \doc
> 
> \lib
> 
> \logs
> 
> \src
> 
> \webapps
> 
> \work
> 
> I have set JAVA_HOME to
> 
> /usr/local/jdk1.3 //-- Root directory of java installation
> 
>  
> 
> I have set the PATH to include
> 
> /usr/local/jdk1.3/bin //-- The directory that holds executables for //-- 
> javac, java, javadoc etc
> 
> /usr/local/jdk1.3 //-- Root directory of java installation
> 
> /usr/local/jdk1.3/lib //-- The location of tools.jar
> 
> /usr/local/jakarta-tomcat //-- Root directory of tomcat installation
> 
> /usr/local/jakarta-tomcat/bin //-- Tomcat executables
> 
>  
> 
> I have set the CLASSPATH to include
> 
> /usr/local/jdk1.3
> 
> /usr/local/jakarta-tomcat/src
> 
> /usr/local/jdk1.3/lib
> 
>  
> 
> I have set TOMCAT_HOME to
> 
> /usr/local/jakarta-tomcat //-- The root installation directory
> 
>  
> 
> Many thanks.
> 
> Mark
> 
>  


-- 
"If you watch TV news, you know less about the world than if
you just drank gin straight from the bottle."  - Garrison Keillor


Re: Problems Setting up new Tomcat3.2 installation with jdk1.3

Posted by Mark Koscak <ma...@logichip.com.au>.
Thank-you, it compiles now.



----- Original Message -----
From: Steve Weiss <st...@bonampak.org>
To: <to...@jakarta.apache.org>
Sent: Tuesday, December 05, 2000 2:54 PM
Subject: Re: Problems Setting up new Tomcat3.2 installation with jdk1.3


> It looks like you need to add <path-to-tomcat>/lib/servlet.jar to your
> classpath.
>
> -S
>
> Mark Koscak wrote:
>
> > I have encountered some problems setting up Tomcat on a development
> > Linux system. If anyone could throw up some suggestions I would be most
> > appreciative.
> >
> > I have installed Tomcat3.2 and I can run the sample servlets and jsp
> > applications after I have started the tomcat server.
> >
> > My problem is that I can't compile the simple Hello.java application in
> > the sample directory e.g.
> >
> > [mark@netdev src]$ javac Hello.java
> >
> > Hello.java:98: Can''t find method "setContentType(java.lang.String)"
> >
> > [mark@netdev src]$
> >
> > Also the interfaces and other code defined in
> > /usr/local/jakarta-tomcat/src/javax have NO associated class objects?
> > Yet on the other machine with the same configuration I can run the
> > sample applications and compile new servlets.
> >
> > The machine that does allow me to compile apps now runs jdk1.3, but was
> > previously running jdk1.1.7, also this machine has class objects in the
> > /usr/local/jakarta-tomcat/src/javax directory.
> >
> > If you need it here are some of the steps I have taken and my system
> > settings, related to the installation of tomcat.
> >
> > Here are the steps I have taken.
> >
> > Downloaded the latest stable version of Tomcat --> jakarta-tomcat.tar.gz
> >
> > I have run tar and extracted tomcat to /usr/local
> >
> > The resultant directory structure is
> >
> > C:\jakarta-tomcat\bin
> >
> > \conf
> >
> > \doc
> >
> > \lib
> >
> > \logs
> >
> > \src
> >
> > \webapps
> >
> > \work
> >
> > I have set JAVA_HOME to
> >
> > /usr/local/jdk1.3 file://-- Root directory of java installation
> >
> >
> >
> > I have set the PATH to include
> >
> > /usr/local/jdk1.3/bin file://-- The directory that holds executables for
file://--
> > javac, java, javadoc etc
> >
> > /usr/local/jdk1.3 file://-- Root directory of java installation
> >
> > /usr/local/jdk1.3/lib file://-- The location of tools.jar
> >
> > /usr/local/jakarta-tomcat file://-- Root directory of tomcat
installation
> >
> > /usr/local/jakarta-tomcat/bin file://-- Tomcat executables
> >
> >
> >
> > I have set the CLASSPATH to include
> >
> > /usr/local/jdk1.3
> >
> > /usr/local/jakarta-tomcat/src
> >
> > /usr/local/jdk1.3/lib
> >
> >
> >
> > I have set TOMCAT_HOME to
> >
> > /usr/local/jakarta-tomcat file://-- The root installation directory
> >
> >
> >
> > Many thanks.
> >
> > Mark
> >
> >
>
>
> --
> "If you watch TV news, you know less about the world than if
> you just drank gin straight from the bottle."  - Garrison Keillor