Hi, I have been trying to resolve this problem for over a week now and I'm really hoping someone here will be able to help me.
I am working on a automated build/deploy application. This application extracts code from cvs for the main project and dependent projects. The dependent projects need to be compiled and made into jars. This issue I am having is in the ant <javac> command. When the command is called, the java files are found but errors get thrown because all of the dependent packages/imports are not being seen.
I have added absolute paths to those packages but errors are still thrown. For instance here is my <javac> code:
compileJavaJar: [echo] compiling LMIG_logging [javac] Compiling 1 source file to C:\workspace\ReferenceBuildProcess\extract\LMIG_logging\src\com\lmig\common\logging [javac] C:\workspace\ReferenceBuildProcess\extract\LMIG_logging\src\com\lmig\common\logging\LogFactory.java:8: cannot resolve symbol [javac] symbol : class DOMConfigurator [javac] location: package xml [javac] import org.apache.log4j.xml.DOMConfigurator; [javac] ^ [javac] C:\workspace\ReferenceBuildProcess\extract\LMIG_logging\src\com\lmig\common\logging\LogFactory.java:29: cannot resolve symbol [javac] symbol : variable DOMConfigurator [javac] location: class com.lmig.common.logging.LogFactory [javac] DOMConfigurator.configureAndWatch("/properties/log4j.xml"); [javac] ^ [javac] 2 errors
Here's my problem: The import statement that it's looking for is located within log4j-1.2.8.jar but it's not seeing it to allow the file to compile, is there any reason why this could happen? What do I need to do to resolve this? I'm assuming that it is a classpath issue but I've run out of ideas. There are other projects that I'm trying to work on as well and they don't recognize anything on their classpaths.