cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Geoff Howard <cocoonge...@yahoo.com>
Subject Re: Can't compile the mail component
Date Sun, 20 Oct 2002 18:13:45 GMT
Kjetil, 

To be useful on the classpath, jar files (unlike
un-jarred classes) have to be named explicitly.  So in
the classpath below every line that ends with
WEB-INF/lib is doing nothing.  You need to use things
like: 
/var/lib/tomcat4/webapps/WEB-INF/classes:/var/lib/tomcat4/webapps/WEB-INF/lib/avalon-framework-20020627.jar:/var/lib/tomcat4/webapps/WEB-INF/lib/cocoon-2.1.jar
...

That can either be in your CLASSPATH environment
variable, or specified on the command line.  Note that
WEB-INF/classes is still correct for un-jarred classes
under that directory.

Geoff

--- Kjetil Kjernsmo <kjetil@kjernsmo.net> wrote:
> Hello again!
...
> Well, I have set it to 
> > echo $CLASSPATH
>
/var/lib/tomcat4/webapps/WEB-INF/classes:/var/lib/tomcat4/webapps/WEB-INF/lib:/var/lib/tomcat4/webapps/cocoon/WEB-INF/classes:/var/lib/tomcat4/WEB-INF/lib:/var/lib/tomcat4/webapps/examples/WEB-INF/classes:/var/lib/tomcat4/webapps/examples/WEB-INF/lib

> That should cover most of it. But when I compile:
> > javac MailComponent.java
> MailComponent.java:3: cannot resolve symbol
> symbol  : class Component
> location: package component
> import
> org.apache.avalon.framework.component.Component;
>                                              ^
> MailComponent.java:6: cannot resolve symbol
> symbol  : class Component
> location: interface cxa.component.mail.MailComponent
> extends Component
>         ^
> 2 errors
> 

> > jar tvf 
>
/var/lib/tomcat4/webapps/WEB-INF/lib/avalon-framework-20020627.jar
> | 
> grep Component
>    137 Thu Jun 27 18:40:08 CEST 2002 
>
org/apache/avalon/framework/component/Component.class
> 


__________________________________________________
Do you Yahoo!?
Y! Web Hosting - Let the expert host your web site
http://webhosting.yahoo.com/

---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail:   <cocoon-users-help@xml.apache.org>


Mime
View raw message