#855 squirrel-sql.bat fails on Windows 7 64 bit


Trying to cope with the fact that JAVA_HOME is not set, I just edited squirrel-sql.bat and first set JAVA_HOME to "C:\Program Files (x86)\Java\jre". The script exited with a message that "Files" is not valid "here" (where?). Seemingly there is some place in the script that needs escaping in order to work with paths having blanks in directory names. Sorry, can't help you further, I'm a UNIX guy as well :)

I just helped myself and inserted

set JAVA_HOME="C:\GlassFish-Tools-Bundle-For-Eclipse-1.2\jre"

immediately after "@echo off". That's what I wanted to use anyway.


  • Rob Manning

    Rob Manning - 2010-04-04

    To my knowledge it isn't good to have unquoted paths with spaces in your CLASSPATH.


  • Rob Manning

    Rob Manning - 2010-04-24

    Fixed in SVN (rev. 5585)

    We now prefer the JRE that was used to launcher the IzPack installer, and
    if that is not available, we choose whatever javaw.exe happens to be in the
    PATH. Using JAVA_HOME is now difficult since the installer wants to
    replace %JAVA_HOME with it's JRE path; and so referencing %JAVA_HOME% in
    the script is bad because it get's partially replaced during the
    installation filtering. That isn't a terrible loss given that in some
    cases people have complained about this being set (for whatever reason) to
    an older or incompatible version of Java.


  • Rob Manning

    Rob Manning - 2010-04-24
    • status: open --> open-fixed
  • Rob Manning

    Rob Manning - 2010-06-12
    • status: open-fixed --> closed-fixed

Log in to post a comment.