IzPack

Launch windows native when has file association

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 3.11.0
  • Fix Version/s: 4.0.0
  • Component/s: Utilities
  • Labels:
    None
  • Environment:
    Windows XP
  • Number of attachments :
    2

Description

I downloaded the windows installer from the site
http://dist.codehaus.org/izpack/releases/3.11.0/setup.exe

Run

It extract IzPack-install-3.11.0.jar on my temp directory

Them dont launch the installer, but launch the 7-zip.

Looking at file associations, .jar are associated with 7-zip, not to java. But I have JAVA_HOME and java.exe is on my path.

Activity

Hide
Julien Ponge added a comment -

In your case the file associations are essentially broken, hence it launches 7-Zip instead of the system default JVM.

Can you please perform those exact steps?

  1. launch a console
  2. type java -version
  3. report to us the output (you can also take a screenshot directly using JIRA).

I'm interested to see this as I need to know if we can improve how Jar installer are launched using izpack2exe, or if this issue is not relevant.

Thanks a lot!

Show
Julien Ponge added a comment - In your case the file associations are essentially broken, hence it launches 7-Zip instead of the system default JVM. Can you please perform those exact steps?
  1. launch a console
  2. type java -version
  3. report to us the output (you can also take a screenshot directly using JIRA).
I'm interested to see this as I need to know if we can improve how Jar installer are launched using izpack2exe, or if this issue is not relevant. Thanks a lot!
Hide
Marvin Froeder added a comment -

Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\Documents and Settings\marvin>java -version
java version "1.5.0_09"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_09-b03)
Java HotSpot(TM) Client VM (build 1.5.0_09-b03, mixed mode, sharing)

C:\Documents and Settings\marvin>

On my file association I have 7-zip as default and java as alternative.

I had already installer (going to temp and open .jar with java), but I believe is a good improvement.

VELO

Show
Marvin Froeder added a comment - Microsoft Windows XP [Version 5.1.2600] (C) Copyright 1985-2001 Microsoft Corp. C:\Documents and Settings\marvin>java -version java version "1.5.0_09" Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_09-b03) Java HotSpot(TM) Client VM (build 1.5.0_09-b03, mixed mode, sharing) C:\Documents and Settings\marvin> On my file association I have 7-zip as default and java as alternative. I had already installer (going to temp and open .jar with java), but I believe is a good improvement. VELO
Hide
Julien Ponge added a comment -

Thanks for reporting back. This indeed needs a fix, I think it will just turn down to using java -jar as the command rather than trying to open the Jar.

Show
Julien Ponge added a comment - Thanks for reporting back. This indeed needs a fix, I think it will just turn down to using java -jar as the command rather than trying to open the Jar.
Hide
Julien Ponge added a comment -

Here is a possible patch to fix the problem.

Martin, could you please test it on your side?

Show
Julien Ponge added a comment - Here is a possible patch to fix the problem. Martin, could you please test it on your side?
Hide
Marvin Froeder added a comment -

Where can I download to test?

VELO

Show
Marvin Froeder added a comment - Where can I download to test? VELO
Hide
Julien Ponge added a comment -

Marvin,

You need to:

  1. apply the patch yourself (attached to this issue in JIRA). It requires a Python environment to work as it patches the izpack2exe.py file.
  2. run izpack2exe over any IzPack-based installer to get a .exe
  3. try it and see if it fixes it.

In case you don't have that, I'll prepare a Win32 executable of izpack2exe for you tomorrow.

Cheers

Show
Julien Ponge added a comment - Marvin, You need to:
  1. apply the patch yourself (attached to this issue in JIRA). It requires a Python environment to work as it patches the izpack2exe.py file.
  2. run izpack2exe over any IzPack-based installer to get a .exe
  3. try it and see if it fixes it.
In case you don't have that, I'll prepare a Win32 executable of izpack2exe for you tomorrow. Cheers
Hide
Marvin Froeder added a comment -

I will need that...

Python 4 me is some kind of snake =D

VELO

Show
Marvin Froeder added a comment - I will need that... Python 4 me is some kind of snake =D VELO
Hide
Julien Ponge added a comment -

This attachment contains a Python-free Win32 executable to wrap a IzPack installer Jar.

Could you please try it to wrap an installer, and test it on your machine?

Thanks a lot.

Show
Julien Ponge added a comment - This attachment contains a Python-free Win32 executable to wrap a IzPack installer Jar. Could you please try it to wrap an installer, and test it on your machine? Thanks a lot.
Hide
Julien Ponge added a comment -

There was a missing file.

Show
Julien Ponge added a comment - There was a missing file.
Hide
Julien Ponge added a comment -

Here what I did:

  1. Downloaded the latest stable IzPack release
  2. Packed with the izpack2exe executable in dist.zip
  3. Tested successfuly.

I just need your confirmation to close the issue

Show
Julien Ponge added a comment - Here what I did:
  1. Downloaded the latest stable IzPack release
  2. Packed with the izpack2exe executable in dist.zip
  3. Tested successfuly.
I just need your confirmation to close the issue
Hide
Julien Ponge added a comment -

On a Windows VISTA box with a normal Java6 installation, it appeared that running 'java -jar installer.jar' would fail. The old behavior (opening the Jar) did not have such problems.

Because this issue is caused by a non-standard file type association, I am re-opening it and will revert the fix in the next few days.

Please comment if you have a better solution.

Show
Julien Ponge added a comment - On a Windows VISTA box with a normal Java6 installation, it appeared that running 'java -jar installer.jar' would fail. The old behavior (opening the Jar) did not have such problems. Because this issue is caused by a non-standard file type association, I am re-opening it and will revert the fix in the next few days. Please comment if you have a better solution.
Hide
Julien Ponge added a comment -

The patch has been reverted.

Show
Julien Ponge added a comment - The patch has been reverted.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: