# tomcat-users mailing list archives

##### Site index · List index
Message view
Top
From "smashingwebs" <bren...@smashingwebs.com>
Subject Re: Defining your own class
Date Wed, 13 Feb 2002 02:54:10 GMT
```Thanks for your help Bryan. When I did it like this
javac -classpath c:\jdk1.3.1\bin;c:\jdk1.3.1\lib\jasper.jar myclass.java
it worked! Thanks again....

----- Original Message -----
To: "Tomcat Users List" <tomcat-user@jakarta.apache.org>
Sent: Tuesday, February 12, 2002 5:08 PM
Subject: RE: Defining your own class

> Have you tried...
>    javac -classpath [PATH]/jasper-runtime.jar myclass.java?
>
> If you are using Tomcat 4.0.2 I know this class is in jasper-runtime.jar.
>
> -----Original Message-----
> From: smashingwebs [mailto:brennan@smashingwebs.com]
> Sent: Tuesday, February 12, 2002 5:55 PM
> To: Tomcat Users List
> Subject: Re: Defining your own class
>
>
> to compile I just change directories to jdk1.3.1:/> and go javac
> myclass.java
>
> P.S. I should note that I have tried something that does work
> which is to compile my class without HttpJspBase and then
> jaring it with the tomcat servlet library, but this then makes
> my application totally unportable....
>
>
> ----- Original Message -----
> To: "Tomcat Users List" <tomcat-user@jakarta.apache.org>
> Sent: Tuesday, February 12, 2002 4:55 PM
> Subject: RE: Defining your own class
>
>
> > What does your classpath look like when compiling?
> >    javac -classpath ? YourClass
> >
> >
> > -----Original Message-----
> > From: smashingwebs [mailto:brennan@smashingwebs.com]
> > Sent: Tuesday, February 12, 2002 5:44 PM
> > To: tomcat-user@jakarta.apache.org
> > Subject: JSP: Defining your own class
> >
> >
> > Hi All,
> > I am using tomcat for my jsp container. I have a book that
> > says that if I want to define my own class and constructor
> > I need to make it extend a class in org.apache.jasper.runtime.*;
> > called HttpJspBase. The problem is when I try to compile
> > it with jdk1.3.1 I get the message that this file doesn't exist.
> > I know it exists in the Tomcat lib under jasper.jar
> > But if I try to put that jar file into my jdk lib file...it
> > still wont find it.
> > Anybody have any ideas or any other way I can define my
> > own class and get jsp servlets to recognize it. I've tried
> > many different things from defining the class on the jsp
> > page to compiling the class  (without HttpJspBase) and
> > putting it all over the place in tomcat.
> >
> >
> > --
> > To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
> > For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
> > Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>
> >
>
>
> --
> To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
> Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>
>
> --
> To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>