Here's a little thing I use to figure out if I'm really getting the
classes from the jar that I think I'm getting:
/**
* tell what class an object is and where in the classpath it came
from
*/
public static String getClassPathInfo(Object object) {
try {
return "class: "
+ object.getClass().getName() +
System.getProperty("line.separator")
+ "code source: " +
object.getClass().getProtectionDomain().getCodeSource().getLocation();
}
catch (Exception e) {
return "Exception in getClassPathInfo: " + e.getMessage();
}
}
You probably already know this, but:
You can create a xalan project in eclipse and then link the your project
to the xalan project by right-clicking on your project in the Package
Explorer view and selecting properties | Java Build Path | Projects and
adding the xalan project to the build path.
Alternatively, build your own xalan.jar, add it to your project
(properties | Java Build Path | Libraries | Add External Jar). Then
right click on the jar in the package explorer and select properties |
java source attachment.