[izpack-users] MacOSX - Linking JavaApplicationStub

Olivier Delrieu pub at delrieu.org
Thu Jan 3 15:40:11 CET 2008


Dear All, cher Julien,

I am trying to do something really simple post-install, in a MacOSX 
environment. I want to make a link to the local JavaApplicationStub file 
into one of my application subfolder. So I have placed the following 
code in <pack></pack> of the IzPack xml installation file :

<executable targetfile="/bin/ln" stage="postinstall" keep="true">          
    <args>
        <arg value="-s 
/System/Library/Frameworks/JavaVM.framework/Resources/MacOS/JavaApplicationStub"/>
        <arg 
value="'$INSTALL_PATH/Taxonomy3.app/Contents/MacOS/JavaApplicationStub'"/>
    </args>
</executable>

You may wonder why I am not including my own JavaApplicationStub in the 
application bundle... This is because this file may be updated, causing 
older versions to fail to start up. See :
http://informagen.com/JarBundler/StubFile.html

Anyway, the above code does not work. At the end of the installation 
process, a blank information window pops up with yes/cancel buttons, and 
no link is created.

Please note this code "ln -s blah blah" works fine when executed by hand 
in the terminal window.

What am I doing wrong ?

Many thanks,

Olivier





More information about the izpack-users mailing list