tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Emir Alikadic (ADNOC IS&T)" <ealika...@adnoc.com>
Subject RE: please help
Date Wed, 01 Aug 2001 09:40:16 GMT
> -----Original Message-----
> From: HGhoreishi@aol.com [mailto:HGhoreishi@aol.com]
> Sent: Wednesday, August 01, 2001 11:11 AM
> To: tomcat-user@jakarta.apache.org
> Subject: RE: please help
> 
> 
> Hi  everybody 
> 
> In my servlet i have import statement as follow. 
>  
>   import com.oreilly.servlet.RemoteDaemonHttpServlet;
> 
> downloaded & unzipped the jar file from
> http://www.servlets.com/con/index.html  in to
> c:\hhgg
> in my servlet i am using import statement as follow
> 
> import hhgh.classes.com.oreilly.servlet.RemoteDaemonHttpServlet;
> 
> I see class RemoteDaemonHttpServlet is placed in
> c:\hhgg\classes\com\oreilly.servlet.
> at compile time i am getting 
> cannot resolve symbol class RemoteDaemonHttpServlet.
> some thing is wrong with my import statement.
> What ? i do not know . can someone please help?
> 
>                                                            
> REGARDS hossein. 
> 

Put "c:\hhgg\classes" into your %CLASSPATH% (if you haven't already), then

"import com.oreilly.servlet.RemoteDaemonHttpServlet;"

Tip: When you're importing, you have to specify the package+class, not the
filesystem path.

That said, you don't have to unpack the jar file, you can simply drop it
into the "c:\hhgg\classes", put "c:\hhgg\classes\my_archive.jar" into your
%CLASSPATH%, and again import as above.

Regards,



Emir.


DISCLAIMER: The content of the preceding message is exclusively
            the personal opinion of the author, i.e. myself. Under no
            circumstances should the content be attributed to my employer.

Mime
View raw message