[izpack-devel] Eclispe configuration problem?

Michael Scherer mscherer at gis-systemhaus.de
Fri Aug 11 15:03:08 CEST 2006


Ok, adding "lib/uninstall*.jar" to the Classpath when running the installer 
helps to find it.

Thanks for the idea ;)

Greetings, Michael

On 11.08.2006 15:00, Michael Scherer wrote:
> Hi.
> 
> I don't want to debug the "uninstall" process but the install process.
> In the run() of the Unpacker.java there's the "putInstaller()" method.
> 
> When I run the "Installer" class in Eclipse it doesn't find 
> /res/IzPack.uninstaller" and thats the problem.
> 
> Any more hints? :)
> 
> M.
> 
> On 11.08.2006 14:57, Miraodb wrote:
>> 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
>>>
>>>
>> _______________________________________________
>> izpack-devel mailing list
>> izpack-devel at lists.berlios.de
>> http://bat.berlios.de/mailman/listinfo/izpack-devel
>>
> 
> 
> _______________________________________________
> 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