Search code examples
javajaybird

javac compiler error for a source file that is not provided


I'm getting this error when I run javac -d classes myfiles.... The strange thing is, I do not have PooledPreparedStatementHandler.java in any folder nor do I have the PooledPreparedStatementHandler sub-string in any of my source files. The only reference I found was PooledPreparedStatementHandler.class in the jaybird jar (used and needed in my classpath).

./lib/jaybird-full-2.1.6.jar (all class files, no java files)

Here is the error:

org/firebirdsql/pool/PooledPreparedStatementHandler.java(org/firebirdsql/pool:PooledPreparedStatementHandler.java):32: package org.apache.xalan.lib.sql does not exist
import org.apache.xalan.lib.sql.XConnection;

This is the compile command:

find src/main/java -type f -name "*.java"| xargs javac -target 1.5 -d war/WEB-INF/classes

What is the source of this error? I'm using oracle javac 1.6.0_26


Solution

  • From the source code, it looks like PooledPreparedStatementHandler tries to import org.apache.xalan.lib.sql.XConnection, so you're dependent on it. And as you don't have that on your build classpath, you're getting the error.