I get the same problem. The following is a snippet of the installation
file I use. In this example, I only create a single HTMLInfoPanel, but
try to use the id attribute:
<resources>
<res id="CustomLangpack.xml_eng"
src="install/langpack.eng.xml"/>
<res id="shortcutSpec.xml"
src="install/Win_shortcutSpec.xml"/>
<res id="HTMLInfoPanel.copyright"
src="install/install-info.html"/>
<res id="HTMLLicencePanel.licence"
src="install/license.html"/>
<res id="TargetPanel.dir.windows"
src="install/default-dir-win.txt"/>
<res id="TargetPanel.dir.unix"
src="install/default-dir-unix.txt"/>
</resources>
<panels>
<panel classname="HelloPanel"/>
<panel classname="HTMLInfoPanel" id="copyright"/>
<panel classname="HTMLLicencePanel"/>
<panel classname="TargetPanel"/>
<panel classname="PacksPanel"/>
<panel classname="ShortcutPanel"/>
<panel classname="SummaryPanel"/>
<panel classname="InstallPanel"/>
<panel classname="SimpleFinishPanel"/>
</panels>
When executed from the command-line, the following exception:
com.izforge.izpack.installer.ResourceNotFoundException: Cannot find named Resource: '/res/HTMLInfoPanel.info' AND '/res/HTMLInfoPanel.info_eng'
at com.izforge.izpack.installer.ResourceManager.getLanguageResourceString(Unknown Source)
at com.izforge.izpack.installer.ResourceManager.getURL(Unknown Source)
at com.izforge.izpack.panels.HTMLInfoPanel.loadHTMLInfoContent(Unknown Source)
at com.izforge.izpack.panels.HTMLInfoPanel.<init>(Unknown Source)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
at com.izforge.izpack.installer.InstallerFrame.loadPanels(Unknown Source)
at com.izforge.izpack.installer.InstallerFrame.<init>(Unknown Source)
at com.izforge.izpack.installer.GUIInstaller.loadGUI(Unknown Source)
at com.izforge.izpack.installer.GUIInstaller.access$100(Unknown Source)
at com.izforge.izpack.installer.GUIInstaller$2.run(Unknown Source)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
java.io.IOException: invalid url
at javax.swing.JEditorPane.setPage(JEditorPane.java:393)
at com.izforge.izpack.panels.HTMLInfoPanel.<init>(Unknown Source)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
at com.izforge.izpack.installer.InstallerFrame.loadPanels(Unknown Source)
at com.izforge.izpack.installer.InstallerFrame.<init>(Unknown Source)
at com.izforge.izpack.installer.GUIInstaller.loadGUI(Unknown Source)
at com.izforge.izpack.installer.GUIInstaller.access$100(Unknown Source)
at com.izforge.izpack.installer.GUIInstaller$2.run(Unknown Source)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
This was executed against IzPack 4.2.0, using standalone-compiler.jar.
Attempting multiple panels do not work either.
Hello Robert,
I tried to use multiple HTMLInfoPanel and it worked without problems.
Did you mean
<panels>
<panel classname="HTMLInfoPanel" id="donate" />
<panel classname="HTMLInfoPanel" id="readme" />
</panels>
instead of
<panels>
<panel classname="HTMLLicencePanel" id="donate" />
<panel classname="HTMLLicencePanel" id="readme" />
</panels>
?
Can you give more informations on your problems?
Thanks in advance.