The moose likes Ant, Maven and Other Build Tools and the fly likes Getting an error in compiling from Ant Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of Practical Unit Testing with TestNG and Mockito this week in the Testing forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Reply Bookmark "Getting an error in compiling from Ant" Watch "Getting an error in compiling from Ant" New topic
Author

Getting an error in compiling from Ant

Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 16617

OK I am running my Ant build.xml but I get an error while compiling. It cannot find the Category class from Log4J. I think it must be with my classpath variables in the build.xml and can't figure it out.
First here is my classpath definition.

And here is my javac call

OK, in the lib/build directory I have the log4j=boot.jar file which contains the Category class. So then why is it not finding this class when compiling?
Thanks
Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 16617

Nevermind, I found out the problem. The lib/build directory that I put the jar file in wa for a completely different Java application. It was for the one that came with the Apress Struts book that I have been reading, and not my actual project for which the Ant build scripts was running against.
DOH!!!

Mark
 
 
subject: Getting an error in compiling from Ant
 
Threads others viewed
[junit] java.lang.ClassNotFoundException: UserActivityTest
Ant Compilation slow
JSP Compilation using ANT
Classpath problems(?)
Compiling with Ant: Package does not exist
IntelliJ Java IDE