should be using JavaSE-1.6 VM, and .classpath, codegen.targetPlatform, compliance and source should also all be 1.6;
making these changes requires the project to have custom compiler settings in order to continue to import XPathAPI
from its original location com.sun.org.apache.xpath.internal, which is still in JavaSE-1.6 rt.jar .