[izpack-users] RE: Getting Custom panel visible

Bartz, Klaus Klaus.Bartz at coi.de
Wed Jun 21 12:09:31 CEST 2006


Hi Jose,
it depends on what IzPack compiler you use.
If you use standalone-compiler.jar you have to do it, if you use compiler.jar
you have only to put the langpack files and MyPanel.jar into the right dirs 
(%IZHOME%\bin\langpacks\installer, %IZHOME%\bin\panels).
In detail: the jars and langpack files have to be in standalone-compiler.jar, not more.
 
If you use %IZHOME%\src\dist-files\compile.bat often the standalone compiler will be used.
 
You are free to write a little ant script which creates your custom panels, copies to the
right place or put it into standalone-compiler.jar.
 
Cheers
 
Klaus

-----Original Message-----
From: izpack-users-admin at berlios.de [mailto:izpack-users-admin at berlios.de]On Behalf Of Jose Correia
Sent: Wednesday, June 21, 2006 11:38 AM
To: izpack-users at lists.berlios.de
Subject: [izpack-users] RE: Getting Custom panel visible


Hi all
 
Can someone assist me on this please... have i got to build the entire izpack project whenever I create a custom Panel or update the langpacks (so that the standard-compiler jar gets updated with these) before I can then build my own installation project??
 
Thanks
Jose

  _____  

From: Jose Correia 
Sent: 15 June 2006 05:12 PM
To: 'izpack-users at lists.berlios.de'
Subject: Getting Custom panel visible


Hi all
 
Apologies if this has already been asked but since there is no search facility on previous posts I didn't feel like going through 15 megs worth of posts.
 
Anyway I created my sample project (using version 3.8.1) and I wanted to add a custom Panel to it so I followed the instructions of placing my panel's code inside ./bin/panels
as per:
 
"/bin/panels: You will see that there is a subdirectory for each panel. Make a subdirectory for your new panel with the exact same name as your panel and place your compiled panel code there.


Once this is accomplished, you are ready to use your panel in an installer. Just list it in the spec file like any other panel, compile and in theory it will show up when running the installer. Once you made it this far, you can dig deeper and get going with your specific needs."

I then specified my panel inside my sample project install.xml file and then proceeded to run:

../bin/compile install.xml -b . -o install.jar -k standard

I now get this:

"Adding content of jar: file:/C:/Program%20Files/IzPack/lib/standalone-compiler.j
ar!/bin/panels/LicencePanel.jar

-> Fatal error :
   install.xml:61: Panel jar file not found: .\bin\panels\InstallationSelectionP
anel.jar
com.izforge.izpack.compiler.CompilerException: install.xml:61: Panel jar file no
t found: .\bin\panels\InstallationSelectionPanel.jar
        at com.izforge.izpack.compiler.CompilerConfig.parseError(CompilerConfig.
java:1518)
        at com.izforge.izpack.compiler.CompilerConfig.findIzPackResource(Compile
rConfig.java:1483)"

So it looks like it's looking for my panel's jar file inside the standalone-compiler.jar??? ( i did try putting in there and that part worked, but I had also updated the english langpack and it moaned about that too). I thought upon compile it was supposed to go look for these things inside the directories themselves not that jar?

Please help...thanks

Jose Correia

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://lists.berlios.de/pipermail/izpack-users/attachments/20060621/0ba0cbdf/attachment.html 


More information about the izpack-users mailing list