[izpack-devel] Eclispe configuration problem?
Miraodb
miraodb at hotmail.com
Fri Aug 11 14:57:36 CEST 2006
Hi Micheal,
Debugging the uninstall is something that you can do with eclipse.
Install your installation to
%INSTALL_PATH%
Run > Debug...
Java Application
New
give a name e.g. "UninstallMyInstall"
select in "Main" the project "IzPack"
select as "main class" "Uninstaller" (from package
com.izforge.izpack.installer)
as "VM arguments" use
-DTRACE=true
select the tab "Classpath"
select "User classes" (2.x) or "User Entries" (3.x)
select "Add External JARs..."
select %INSTALL_PATH%\Uninstaller\uninstall.jar
uninstall.jar must be under the project entry
Now, you can debug your uninstallation. Don't worry if you get first a
NullPointerException in SelfModifier. This should be; it is a hint, that the
class files of your eclipse session are used.
If debugging not working, look whether:
a.. there is a fresh installation
b.. the uninstall.jar is in the "Classpath" tab under the project entry
All this was described in the docu by the way :-)
Cheers,
Fabrice
----- Original Message -----
From: "Michael Scherer" <mscherer at gis-systemhaus.de>
To: <izpack-devel at lists.berlios.de>
Sent: Friday, August 11, 2006 2:51 PM
Subject: [izpack-devel] Eclispe configuration problem?
> Hi.
>
> I have a problem while debugging/hacking IzPack in my Eclipse.
> I followed the instructions on the website for getting me a an
IzPack-Project
> in Eclipse.
> Everything works fine.
> I can compile, build installers, debug them while they run.
>
> BUT whats missing currently is the uninstaller because:
> InputStream[] in = new InputStream[2];
> in[0] =
Unpacker.class.getResourceAsStream("/res/IzPack.uninstaller");
> if (in[0] == null) return;
> .. always returns.
>
> How do I configure my Eclipse so it can grab that resource?
>
> THanks for the hints, greetings,
> Michael
>
> _______________________________________________
> izpack-devel mailing list
> izpack-devel at lists.berlios.de
> http://bat.berlios.de/mailman/listinfo/izpack-devel
>
>
More information about the izpack-devel
mailing list