[izpack-users] problem creating shortcuts

Miraodb miraodb at hotmail.com
Fri Aug 4 14:11:05 CEST 2006


Hi Mika,

Uhm.... one more thing, in case it still doesnt work, send us the xmls.

Cheers,
Fabrice
----- Original Message ----- 
From: "mika" <mika.works at gentlemansclub.de>
To: <izpack-users at lists.berlios.de>
Sent: Friday, August 04, 2006 1:49 PM
Subject: [izpack-users] problem creating shortcuts


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:2
03)
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
_______________________________________________
izpack-users mailing list
izpack-users at lists.berlios.de
http://bat.berlios.de/mailman/listinfo/izpack-users





More information about the izpack-users mailing list