Menu

#1343 SQirreL refuses to start on macOS 10.12.6

3.9.0
open
nobody
macOS (3)
medium
2019-06-09
2018-05-23
No

I downloaded SQuirreL today but it refuses to launch. I double click on it, it appears and the disappears from the Dock. That is all. Nothing in the syslog.

I am on macOS 10.12.6 and on a MacBook Pro 2017 fairly maxed out. "java -version" output is
java version "1.8.0_131"
Java(TM) SE Runtime Environment (build 1.8.0_131-b11)
Java HotSpot(TM) 64-Bit Server VM (build 25.131-b11, mixed mode)

2 Attachments

Related

Bugs: #1343

Discussion

  • Karl-Koenig Koenigsson

    when I try the script squirrel-sql.sh from the command line I get an error stating that it can not find JavaVersionChecker. The offending line is

    • /Library/Java/JavaVirtualMachines/jdk1.8.0_131.jdk/Contents/Home//bin/java -cp /Applications/SQuirreLSQL.app/Contents/MacOS/lib/versioncheck.jar JavaVersionChecker 1.8 9 10

    and, since that there is no "lib" folder under MacOS (where this script is) is this error not surprising.

     
  • Joel Loewenstein

    Hi, i think this is resolved in 3.8.1? Which version did you use? I fixed a similar error by either putting the jar where needed or adapting the script, canot recall in detail. But when i recently installed 3.8.1 i did not have that issue on 10.13.4 any more

     
  • Johnny Hujol

    Johnny Hujol - 2019-05-26

    Hi, this issue is still present in the build 3.9.1. on macOS 10.13.6 (17G7024).

    First thx to the developpers to keep up with this amazing tool and it's free. So kudos to them :)

    The issue is in the script squirrel-sql.sh located in /Applications/SQuirreLSQL.app/Contents/MacOS that sets the wrong path to 2 jars and the lib directory.

    To fix the issue find the lines and change the paths to these below:

    "$JAVACMD" -cp "$UNIX_STYLE_HOME/../Resources/Java/lib/versioncheck.jar" JavaVersionChecker 1.8 9 10 11
    
    ...
    
    CP="$UNIX_STYLE_HOME"/../Resources/Java/squirrel-sql.jar:"$UNIX_STYLE_HOME"/../Resources/Java/lib/*
    

    Et voila!
    Happy SQuirreLSQLing!

     
  • Karl-Koenig Koenigsson

    I tried the patch, i.e., I edited the shell script file within the
    application according to Johnny’s suggestion and now it works.

    K

    På 27 maj 2019 kl. 21:42:42, Gerd Wagner (gerdwagner@users.sourceforge.net)
    skrev:

    • Attachments has changed:

    Diff:

    --- old
    +++ new
    @@ -0,0 +1,2 @@
    +squirrel-sql-mac.sh (4.4 kB; application/x-shellscript)
    +squirrel-sql.sh (3.9 kB; application/x-shellscript)
    
    • Group: --> 3.9.0
    • Priority: 5 --> medium
    • Comment:

    Johnny, thank you for your changes.

    Since I don't have access to a Mac, could another Mac user please verify
    Johnny's changes.
    For convenience I attached the scripts with the changes.
    Gerd


    ** [bugs:#1343] SQirreL refuses to start on macOS 10.12.6**

    Status: open
    Group: 3.9.0
    Labels: macOS
    Created: Wed May 23, 2018 02:33 PM UTC by Karl-Koenig Koenigsson
    Last Updated: Sun May 26, 2019 08:44 AM UTC
    Owner: nobody
    Attachments:

    I downloaded SQuirreL today but it refuses to launch. I double click on it,
    it appears and the disappears from the Dock. That is all. Nothing in the
    syslog.

    I am on macOS 10.12.6 and on a MacBook Pro 2017 fairly maxed out. "java
    -version" output is
    java version "1.8.0_131"
    Java(TM) SE Runtime Environment (build 1.8.0_131-b11)
    Java HotSpot(TM) 64-Bit Server VM (build 25.131-b11, mixed mode)


    Sent from sourceforge.net because you indicated interest in <
    https://sourceforge.net/p/squirrel-sql/bugs/1343/>

    To unsubscribe from further messages, please visit <
    https://sourceforge.net/auth/subscriptions/>

     

    Related

    Bugs: #1343

  • Gerd Wagner

    Gerd Wagner - 2019-05-27

    Johnny, thank you for your changes.

    Since I don't have access to a Mac, could another Mac user please verify Johnny's changes.
    For convenience I attached the scripts with the changes.
    Gerd

     
  • Anonymous

    Anonymous - 2019-05-31

    I tried the script posted on macOS 10.14.5 and it works, though I had to allow Java 12 (which I have installed)

    "$JAVACMD" -cp "$UNIX_STYLE_HOME/../Resources/Java/lib/versioncheck.jar" JavaVersionChecker 1.8 9 10 11

    changed to

    "$JAVACMD" -cp "$UNIX_STYLE_HOME/../Resources/Java/lib/versioncheck.jar" JavaVersionChecker 1.8 9 10 11 12

     
  • Gerd Wagner

    Gerd Wagner - 2019-06-09

    Thanks a lot. Johnny's changes are committed to our GIT repository and will be available in future snapshots and versions.

     

Log in to post a comment.

MongoDB Logo MongoDB