Hi
We have created an installer using IZPack and it works fine on Windows & Linux using the GUI but we hit a problem when it is executed on the Linux command line with the ‘–console’ option.
One of the steps (which allows the user to specify a data directory) seems to be skipped during the installation process and this causes the following stack trace to be produced at the end of the installer:
[ ERROR: Internal error occured : java.lang.NullPointerException ]
java.lang.NullPointerException
at java.util.Hashtable.put(Hashtable.java:514)
at java.util.Properties.setProperty(Properties.java:161)
at com.izforge.izpack.installer.AutomatedInstallData.setVariable(Unknown Source)
at uk.gov.nhs.spine.dbs.installer.EscapePaths.escapePathAndStore(EscapePaths.java:35)
at uk.gov.nhs.spine.dbs.installer.EscapePaths.beforePacks(EscapePaths.java:21)
at com.izforge.izpack.installer.UnpackerBase.informListeners(Unknown Source)
at com.izforge.izpack.installer.Unpacker.run(Unknown Source)
at java.lang.Thread.run(Thread.java:744)
Our list of Panels is quite small and it is the UserPathPanel which is skipped:
<panels>
<panel classname="HelloPanel" />
<panel classname="TargetPanel" />
<panel classname="UserPathPanel" />
<panel classname="UserInputPanel" id="UserInputPanel.ServerDetails" />
<panel classname="UserInputPanel" id="UserInputPanel.OrganisationDetails" />
<panel classname="PacksPanel" />
<panel classname="SummaryPanel" />
<panel classname="InstallPanel" />
<panel classname="SimpleFinishPanel" />
</panels>
I can’t see anything obvious that would cause this behaviour, has anyone seen it before?
Thanks
Andy
I can see pre-defined conditions based on the OS of the install but I cannot see how to use a condition to detect if the installer is being run in console mode. Is there a pre-defined condition or a simple way to detect if the installer is being run in GUI or console mode?
Sorry for the newbie questions but it’s the first time that I’ve used izpack.