我有一个Applet应用程序,我正在将其迁移到JWS。当我在浏览器(Applet)中运行它时,它很好,我制作了JNLP文件,将应用程序下载到本地机器。当我将jnlp文件放在某个不包含' international.properties'的文件夹中时它工作的文件,但如果我把它放在它工作的相同文件夹中,我们有其他应用程序做同样的事情,它的工作原理。我无法找到错误。缓存有什么相关的吗?有没有办法将international.properties放在缓存中?
错误是:
java.util.MissingResourceException: Can't find bundle for base name international, locale pt_BR
at java.util.ResourceBundle.throwMissingResourceException(Unknown Source)
at java.util.ResourceBundle.getBundleImpl(Unknown Source)
at java.util.ResourceBundle.getBundle(Unknown Source)
at teste.applet.testeMainPanel.initComponents(testeMainPanel.java:687)
at teste.applet.testeMainPanel.<init>(testeMainPanel.java:62)
at teste.applet.testeApplication.initMainPanel(testeApplication.java:183)
at teste.applet.testeLoginPanel.jButton1ActionPerformed(testeLoginPanel.java:104)
at teste.applet.testeLoginPanel.access$000(testeLoginPanel.java:12)
at teste.applet.testeLoginPanel$1.actionPerformed(testeLoginPanel.java:81)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.JComponent.processMouseEvent(Unknown Source)
java.lang.NullPointerException
at java.awt.Container.addImpl(Unknown Source)
at java.awt.Container.add(Unknown Source)
at teste.applet.testeMainFrame.<init>(testeMainFrame.java:21)
at teste.applet.testeApplication.initMainFrame(testeApplication.java:167)
at teste.applet.testeLoginPanel.jButton1ActionPerformed(testeLoginPanel.java:105)
at teste.applet.testeLoginPanel.access$000(testeLoginPanel.java:12)
Exception in thread "AWT-EventQueue-2" java.lang.NullPointerException
at teste.applet.testeApplication.initMainFrame(testeApplication.java:177)
at teste.applet.testeLoginPanel.jButton1ActionPerformed(testeLoginPanel.java:105)
at teste.applet.testeLoginPanel.access$000(testeLoginPanel.java:12)
at teste.applet.testeLoginPanel$1.actionPerformed(testeLoginPanel.java:81)
JNLP文件是:
<?xml version="1.0" encoding="utf-8"?>
<jnlp spec="1.0+" codebase="http://path/teste/" href="teste.jnlp">
<information>
<title>TesteDesktop</title>
<vendor>FACTORY</vendor>
<homepage href="www.factory.com.br"/>
<description>TESTE WebStart</description>
<icon kind="shortcut" href="imagens/teste.ico"/>
<icon href="imagens/splash_screen_teste.png" kind="splash"/>
<shortcut online="true">
<desktop/>
<menu submenu="TESTE"/>
</shortcut>
</information>
<security>
<all-permissions />
</security>
<application-desc main-class="teste.applet.testeApplication">
<argument>http://path/teste/</argument>
<argument>PORTUGUESE</argument>
<argument>F</argument>
</application-desc>
<resources>
<j2se version="1.6+"/>
<jar eager="true" href="teste.jar" main="true"/>
</resources>
</jnlp>