Re: error while compiling log4j

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 02/05/11 07:26, Mac Smith wrote:
> Hi,
> 
> I am getting this error while compiling log4j
> 
> # gcj -c -fjni log4j.jar -o log4j.oorg/apache/log4j/net/SMTPAppender.java:0: error: cannot find file for class javax.mail.Authenticator
> org/apache/log4j/net/SMTPAppender.java:0: error: cannot find file for class javax.mail.Authenticator
> org/apache/log4j/net/SMTPAppender.java:183: confused by earlier errors, bailing out

I think you need to compile log4j as a shared library with -fPIC,
-findirect-dispatch, etc.  GNU JavaMail provides javax.mail.Authenticator,
and that package is available as  classpathx-mail on Fedora, and something
similar in other distros.

Andrew.


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux