[izpack-users] PathSelectionPanel without using TargetPanel in 3.9 Show full header

Lars Fischer ottrich at gmx.net
Tue Oct 10 17:22:58 CEST 2006


Hello,

I want to create an installer which uses an not changable install-path.
With Izpack 3.8 this setting has worked:

<panels>
        <panel classname="HelloPanel"/>
        <panel classname="InstallPanel"/>
        <panel classname="ShortcutPanel"/>
        <panel classname="SimpleFinishPanel"/>
</panels>

After updating to 3.9 the created install.jar shows an exception, if I
try to install my application:

java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
        Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown
        Source)
        at
        sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown
        Source)
        at java.lang.reflect.Constructor.newInstance(Unknown Source)
        at
        com.izforge.izpack.installer.InstallerFrame.loadPanels(InstallerFrame.java:243)
        at
        com.izforge.izpack.installer.InstallerFrame.<init>(InstallerFrame.java:198)
        at
        com.izforge.izpack.installer.GUIInstaller.loadGUI(GUIInstaller.java:427)
        at
        com.izforge.izpack.installer.GUIInstaller.access$100(GUIInstaller.java:79)
        at
        com.izforge.izpack.installer.GUIInstaller$2.run(GUIInstaller.java:148)
        at java.awt.event.InvocationEvent.dispatch(Unknown Source)
        at java.awt.EventQueue.dispatchEvent(Unknown Source)
        at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown
        Source)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown
        Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.run(Unknown Source)
Caused by: java.lang.NoClassDefFoundError
        at
        com.izforge.izpack.gui.IzPanelLayout.class$(IzPanelLayout.java:175)
        at
        com.izforge.izpack.gui.IzPanelLayout.getIntermediarId(IzPanelLayout.java:217)
        at
        com.izforge.izpack.gui.IzPanelLayout.addLayoutComponent(IzPanelLayout.java:1007)
        at java.awt.Container.addImpl(Unknown Source)
        at java.awt.Container.add(Unknown Source)
        at
        com.izforge.izpack.panels.HelloPanel.<init>(HelloPanel.java:88)
        at
        com.izforge.izpack.panels.HelloPanel.<init>(HelloPanel.java:58)
        ... 16 more
Caused by: java.lang.ClassNotFoundException:
com.izforge.izpack.panels.PathSelectionPanel
        at java.net.URLClassLoader$1.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClassInternal(Unknown Source)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Unknown Source)
        ... 23 more

The missing PathSelectionPanel is in the package "TargetPanel" and not
included in the install.jar, because I dont use the TargetPanel.

Can I import the TargetPanel without showing it to the user or can I
disable it in the installation-process?

regards,
Lars Fischer
-- 
ottrich at gmx.net




More information about the izpack-users mailing list