import-bot (20211) [Avatar] Offline
#1
[Originally posted by yemings]

I have written my own logger that is in the package
or.apache..tools.ant.listener. When I run ant, it gives me the following
error:

Unable to instantiate specified logger class
org.apache.tools.ant.listener.Logger : java.lang.ClassNotFoundException
java.lang.RuntimeException
at org.apache.tools.ant.Main.createLogger(Main.java:712)
at org.apache.tools.ant.Main.addBuildListeners(Main.java:643)
at org.apache.tools.ant.Main.runBuild(Main.java:557)
at org.apache.tools.ant.Main.start(Main.java:196)
at org.apache.tools.ant.Main.main(Main.java:235)

thanks
import-bot (20211) [Avatar] Offline
#2
Re: Adding a custom logger
[Originally posted by erikhatcher]

Do you have it in a JAR in ANT_HOME/lib? Or in your system CLASSPATH (which
you should not
have defined though)?
import-bot (20211) [Avatar] Offline
#3
Re: Adding a custom logger
[Originally posted by yemings]

I have my Logger.class in log.jar under the ANT_HOME/lib directory. It is
still giving me the same error.
import-bot (20211) [Avatar] Offline
#4
Re: Adding a custom logger
[Originally posted by erikhatcher]

I don't know. My guess is you have a package name mismatch or something like
that. This issue
should be taken to Ant's user list from this point forward though. Its not a
book related issue,
which is what this forum is for.