build.xml 蚂蚁问题
运行小程序时出现以下异常: 线程“AWT-EventQueue-4”java.lang.NoClassDefFoundError 中出现异常:ice/net/SnapshotCacheManager,
但文件位于 jar 内。
网上搜了一下,发现可能是小程序没有在当前目录下查找有关,需要添加 .;到 CLASSPATH 但我不知道如何将它添加到 build.xml
谢谢
Doron
编辑:最后我弄清楚了,这不是 ant 问题或构建 XML,我得到了这个异常,因为我签署了两个包含相同的包不同,所以发生了冲突,不是一个信息丰富的异常......
I am getting the following exception when running an applet:
Exception in thread "AWT-EventQueue-4" java.lang.NoClassDefFoundError: ice/net/SnapshotCacheManager
but the file is inside the jar.
I searched online and found it might be related to the applet not looking in the current directory and i need to add .; to the CLASSPATH but i am not sure how to add it to the build.xml
Thanks
Doron
Edit: Finally I figured it out, it wasn't an ant problem or the build XML, I got this exception because I signed two jars containing the same package differently, so there was a collision, not a very informative exception....
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
查看当前 build.xml 文件中的内容可能很有用,但您可能想要查看的部分是< /code> 和
元素,特别是
元素。这是一个非常粗略的示例,其中包含一些指导变量。请注意,
${classes.home}
是在 build.xml 文件顶部定义的特殊变量。许多变量可用于使事情变得更容易并指定相对路径。it might be useful to see what is in your current build.xml file, but the section you probably want to look at is the
<target>
element specifically the<src path>
and<fileset>
elements. Here is a VERY rough example with some guiding variables.note that
${classes.home}
is a special variable defined at the top of the build.xml file. Many variables can be used to make things easier and specify relative paths.