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
but, I can see that the tools.jar exis开发者_如何学编程ts in the java install directory, and that tools.jar contains the JarSignerResource class. Any ideas?
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:
- if you open the tools.jar file and check the content of sun\security\tools you will find that one of them doesn't have the resource JarSignerResources_en_US.class, or
- check the default locate of the two different OS you are using: one of them should be en_US and the other is not. This is most probable.
精彩评论