#470 Installer: can't select JRE

closed-fixed
Rob Manning
Unknown (89)
9
2007-01-04
2007-01-03
Olivier Mengué
No

With 2.4 final (squirrel-sql-2.4-install.jar) on Windows:

In the installer, the JRE/JDK selection does not work: it seems it didn't detect my JRE 1.5.0_09 so the field is empty.
I tried to give "C:\Program Files\Java\jre1.5.0_09" or to find a path containing java.exe, without success.
Which file does it look for?

This is also an UI bug as no information is provided about what to do.

Discussion

    • summary: Installer: can't select JDK --> Installer: can't select JRE
     
    • priority: 5 --> 9
     
  • Colin Bell
    Colin Bell
    2007-01-03

    Logged In: YES
    user_id=233132
    Originator: NO

    It will detect a JDK, just not a JRE.

     
  • Rob Manning
    Rob Manning
    2007-01-03

    Logged In: YES
    user_id=1287991
    Originator: NO

    Indeed - I didn't test it with a JRE, but that does in fact present a problem. I'm inclined to remove that panel from the installer and do another release without it. I've attached the relevant file from IzPack source distribution if someone wants to come up with a work-around for the time being. I'll have another chance to look at it a little later.

    Rob
    File Added: JDKPathPanel.java

     
  • Rob Manning
    Rob Manning
    2007-01-03

    IzPack source for JDK Path panel

     
    Attachments
  • Colin Bell
    Colin Bell
    2007-01-04

    Logged In: YES
    user_id=233132
    Originator: NO

    The JDKPathPanel.java file actually checks for a JDK, not a JRE. Its designed for products that require a JDK. It does this by looking for tools.jar.

    You've got a <javaversion>1.5</javaversion> entry which hopefully will do.

     
  • Rob Manning
    Rob Manning
    2007-01-04

    Logged In: YES
    user_id=1287991
    Originator: NO

    Agreed. Maybe a later version of IzPack will ship a JREPathPanel. For now though, I'll remove the JDKPathPanel and post an updated 2.4 install jar. I don't think we need to increment the version as it is just an installer fix - no changes in SQuirreL code.

    Rob

     
  • Rob Manning
    Rob Manning
    2007-01-04

    • status: open --> closed-fixed
     
  • Rob Manning
    Rob Manning
    2007-01-04

    Logged In: YES
    user_id=1287991
    Originator: NO

    A new install jar file is available in place of the old one. No code changes were made to SQuirreL. This installer lacks the JDK Panel that the old one had which prevented folks with mere JRE's from installing.

    Rob

     
  • Logged In: YES
    user_id=394390
    Originator: YES

    Thanks. I will test this new package later.

    The release notes still says SuirreL requires a JDK 1.5, which, AFAIK, is not the case. A JRE is just enough.