[izpack-users] problem creating shortcuts

mika mika.works at gentlemansclub.de
Fri Aug 4 13:49:50 CEST 2006


Hi,

now I have a problem with creating shortcuts...

Well, I've added the ShellLink.dll into mySample application in the folder "<mySample>\bin\native\izpack\bin". A resource to the shortcutSpec.xml was added too.

Next I've created a shortcutSpec.xml with the following content:
<shortcuts>
  <skipIfNotSupported />
  <programGroup defaultName="CheckVirusUpdate"
                location="startMenu" />
  <shortcut name="Involve Checking"
		target="$INSTALL_PATH\win\CheckVirusUpdate.bat"
		description="This involves Checking wheather there are new updates"
		initialState="noShow"
		startMenu="yes">
    <createForPack name="executable" />
  </shortcut>
</shortcuts>

In the install.xml the panel ShortcutPanel was also added.

The compilation works super, but while installing this jar many errors occur:
could not create shortcut instance
java.lang.Exception: error loading library
java.lang.Exception: can't locate library
	at com.izforge.izpack.util.Librarian.loadLibrary(Librarian.java:277)
	at com.izforge.izpack.util.os.ShellLink.initialize(ShellLink.java:461)
	at com.izforge.izpack.util.os.ShellLink.<init>(ShellLink.java:349)
	at com.izforge.izpack.util.os.Win_Shortcut.initialize(Win_Shortcut.java:79)
	at com.izforge.izpack.panels.ShortcutPanel.<init>(ShortcutPanel.java:473)
	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:203)
	at com.izforge.izpack.installer.InstallerFrame.<init>(InstallerFrame.java:160)
	at com.izforge.izpack.installer.GUIInstaller.loadGUI(GUIInstaller.java:391)
	at com.izforge.izpack.installer.GUIInstaller.<init>(GUIInstaller.java:128)
	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 java.lang.Class.newInstance0(Unknown Source)
	at java.lang.Class.newInstance(Unknown Source)
	at com.izforge.izpack.installer.Installer.main(Installer.java:62)

Why wasn't the installer able to create this shortcut instance?

Thanks,
mika
-- 


Echte DSL-Flatrate dauerhaft für 0,- Euro*. Nur noch kurze Zeit!
"Feel free" mit GMX DSL: http://www.gmx.net/de/go/dsl



More information about the izpack-users mailing list