ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan.Mate...@rzf.fin-nrw.de
Subject AW: Unable to instantiate specified logger class
Date Mon, 07 Mar 2005 07:03:58 GMT
Is that class in the classpath?
Maybe you should pack that logger in a jar and put that to
${user.home}/.ant/lib
Mmh - starting with -lib should also work. These jars are added very early
to Ant´s classpath.


Jan

> -----Ursprüngliche Nachricht-----
> Von: Fabricio Diogenes [mailto:fabriciodiogenes@ig.com.br]
> Gesendet am: Freitag, 4. März 2005 21:42
> An: user@ant.apache.org
> Betreff: Unable to instantiate specified logger class
> Wichtigkeit: Hoch
> 
> Hi all,
> 
> I installed Ant 1.6.2 on RedHat ES 3 and when I run my project like:
> 
> /usr/apache-ant-1.6.2/bin/ant -f nitebuild.xml  -logger 
> br.com.sabius.listener.NbLogger java
> 
> I get:
> 
> Unable to instantiate specified logger class 
> br.com.sabius.listener.NbLogger : java.lang.ClassNotFoundException
> java.lang.RuntimeException
>         at org.apache.tools.ant.Main.createLogger(Main.java:787)
>         at org.apache.tools.ant.Main.addBuildListeners(Main.java:710)
>         at org.apache.tools.ant.Main.runBuild(Main.java:598)
>         at org.apache.tools.ant.Main.startAnt(Main.java:188)
>         at org.apache.tools.ant.launch.Launcher.run(Launcher.java:196)
>         at org.apache.tools.ant.launch.Launcher.main(Launcher.java:55)
> 
> 
> I follow the FAQ and already did:
> 
> > unset CLASSPATH 
> 
> > checked with "ant -version" command
> 
> > uninstall the preinstalled version of ant with "rpm -e ant ant-libs"
> 
> I have my own JAR files and I tested copy them to 
> $ANT_HOME/lib, but nothing work.
> 
> 
> Please, anybody help me?
> 
> 
> Fabricio.
> 
> 
> 
> 
> 
> 
> 
> 

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message