tools.jar存在,但无法找到sun.security.tools.JarSignerResources [英] tools.jar exists, but cant find sun.security.tools.JarSignerResources
本文介绍了tools.jar存在,但无法找到sun.security.tools.JarSignerResources的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我看到以下异常(在Linux上的Java6-sun安装,但不是在OSX上)
I am seeing the following exception (on a Linux Java6-sun install, but not on OSX)
Caused by: java.util.MissingResourceException: Can't find bundle for base name sun.security.tools.JarSignerResources, locale en_US
at java.util.ResourceBundle.throwMissingResourceException(Unknown Source)
at java.util.ResourceBundle.getBundleImpl(Unknown Source)
at java.util.ResourceBundle.getBundle(Unknown Source)
at com.wuntee.aat.security.tools.JarSigner.<clinit>(JarSigner.java:96)
... 12 more
但是,我可以看到tools.jar存在于java安装目录,而tools.jar包含JarSignerResource类。任何想法?
but, I can see that the tools.jar exists in the java install directory, and that tools.jar contains the JarSignerResource class. Any ideas?
推荐答案
问题与找不到jar无关。该问题与在jar中找不到en_US区域设置的一些资源有关。
可以发生两件事情:
The problem is not related with not finding the jar. The problem is related with not finding some resource for en_US locale within the jar instead. Two things can be happening:
- 如果您打开tools.jar文件并检查sun\security\\的内容\\tools你会发现其中一个没有资源JarSignerResources_en_US.class,或者
- 检查你正在使用的两个不同的操作系统的默认位置:其中一个应该是en_US另一个不是。这是最可能的。
这篇关于tools.jar存在,但无法找到sun.security.tools.JarSignerResources的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文