来自 ZKM 日志:
致命错误:尝试在第 132 行对不可用的类使用“混淆”语句:在类中引用的类“javax.naming.Binding”中查找方法“getObject()”时未找到类“javax.naming.Binding” 'C:\Users\AndroidProjects\myProject\myProject\build\libs\myProject.jar!org/bouncycastle/cert/dane/fetcher/JndiDANEFetcherFactory$1.class'。检查类路径选项并重新打开类。(1a)
我将依赖项包含在 jar 中,以便该库是独立的,用户不需要导入很多东西。但是,使用ZKM时会弹出此错误。
如何让ZKM忽略这一点?
我对 javaFX 类也有同样的问题。
您可以将缺少的 jar 添加到 Zelix 脚本中的类路径中,然后它就会工作:
示例来自https://www.zelix.com/klassmaster/docs/langZKMScript.html
An example using every statement and parameter with color coding
/*****************************************************************************/
/* Sample ZKM Script using every statement and parameter */
/*****************************************************************************/
classpath ".;c:\jdk1.4.0\jre\lib\rt.jar"
"C:/path to java/lib/ext/jfxrt.jar" // this is what I had to add
"Path to the jar that wasn't found"; // you could add the jar containing the Binding class
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
1778 次 |
| 最近记录: |