我的问题仅在我 jar 应用程序时出现。它在日食下工作正常。
这是日志:
javax.xml.transform.TransformerConfigurationException:找不到外部方法'com.intellgis.saxonTransformExtensions.TransformCoordinates.convertGMLPosList'(必须是公共的)
(对于我之前编写的其他库中的方法,我也遇到了类似的错误)
据我所知,这可能是因为系统 java 没有指定正确的类路径。
问题是:
如何修复它(将类路径添加到 xsl 文件)。
更新:
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="src"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/jre7"/>
<classpathentry kind="lib" path="lib/gt-api-2.7.5.jar"/>
<classpathentry kind="lib" path="lib/gt-epsg-wkt-2.7.5.jar"/>
<classpathentry kind="lib" path="lib/gt-main-2.7.5.jar"/>
<classpathentry kind="lib" path="lib/gt-metadata-2.7.5.jar"/>
<classpathentry kind="lib" path="lib/gt-opengis-2.7.5.jar"/>
<classpathentry kind="lib" path="lib/gt-referencing-2.7.5.jar"/>
<classpathentry kind="lib" path="lib/jai_core-1.1.3.jar"/>
<classpathentry kind="lib" path="lib/jsr-275-1.0-beta-2.jar"/>
<classpathentry kind="lib" path="lib/jts-1.8.jar"/>
<classpathentry kind="lib" path="lib/resolver.jar"/>
<classpathentry kind="lib" path="lib/saxonTransformExtension.jar"/>
<classpathentry kind="lib" path="lib/serializer.jar"/>
<classpathentry kind="lib" path="lib/vecmath-1.3.2.jar"/>
<classpathentry kind="lib" path="lib/xalan.jar"/>
<classpathentry kind="lib" path="lib/xercesImpl.jar"/>
<classpathentry kind="lib" path="lib/xercesSamples.jar"/>
<classpathentry kind="lib" path="lib/xml-apis.jar"/>
<classpathentry kind="output" path="bin"/>
</classpath>