Menu

#1310 Mac OS installation does not run

Snapshot
closed-fixed
nobody
None
5
2019-01-18
2017-09-21
Eric Nadler
No

I downloaded the squirrel-sql-snapshot-20170920_0729-MACOSX-install.jar install.

After the default installation with no plug ins, double clicking the app does nothing.

Manually running the startup script gets an error:
/Applications $ SQuirreLSQL.app/Contents/MacOS/squirrel-sql.sh
SQuirreLSQL.app/Contents/MacOS/squirrel-sql.sh: line 26: Plug-Ins/JavaAppletPlugin.plugin/Contents/Home: No such file or directory

Here is my java version:
/Applications $ java -version
java version "1.8.0_121"
Java(TM) SE Runtime Environment (build 1.8.0_121-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.121-b13, mixed mode)

I'm running Mac OS X 10.12.5 Sierra on a MacBook Pro.

In the startup script I then manually set JAVACMD:

In file "/Users/enadler/Documents/squirrel-sql.sh":

34: #if [ -d "$JAVA_HOME" -a -x "$JAVA_HOME/bin/java" ]; then
35: # JAVACMD="$JAVA_HOME/bin/java"
36: #elif [ -d "$IZPACK_JAVA_HOME" -a -x "$IZPACK_JAVA_HOME/bin/java" ]; then
37: # JAVACMD="$IZPACK_JAVA_HOME/bin/java"
38: #else
39: # JAVACMD=java
40: #fi
41: JAVACMD="/Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/bin/java"

I commented out the versioncheck.

I put double quotes around $JAVACMD at the end so that it would run correctly since there is a space in the path.

At this point I got a different error:
/Applications $ SQuirreLSQL.app/Contents/MacOS/squirrel-sql.sh
Error: Could not find or load main class net.sourceforge.squirrel_sql.client.Main

This is where I gave up.

Thanks for any help you can provide!
Eric

Discussion

<< < 1 2 (Page 2 of 2)
  • Ross

    Ross - 2018-01-19

    I read them and was able to get squirrel launched by downloading the zip. My first attempt was using the Mac install Jar which didn't work. Thanks!

     
    • Jörn

      Jörn - 2018-01-19

      Thank you reply.
      Have Fun with nice tool.

       
  • Jim

    Jim - 2018-09-06

    In the Squirrel-sql.sh script, check the line:
    IZPACK_JAVA_HOME=/Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home
    It should be
    IZPACK_JAVA_HOME=/Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin/Contents/Home with a \ in front of "Internet" to correctly identify the path.

     
  • Gerd Wagner

    Gerd Wagner - 2018-09-17

    Could some of the others who took part in these discussions please confirm Jim's posting?

     

    Last edit: Gerd Wagner 2018-09-17
  • Joseph Coco

    Joseph Coco - 2019-01-18

    Alternative 2 worked for me. I didn't try 3. I was having issues previously, so instead of just opening the jar via Finder I used a specific java with -jar in the terminal to open it.

    SQUIRREL_SQL_HOME=$(echo $ABSPATH | grep -o '^/.*/Contents/')Resources/Java

    MacOS 10.14.1
    My Java path: /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/bin/java
    Java version: build 1.8.0_202-ea-b03
    Jvm version: 64-Bit Server VM (build 25.202-b03, mixed mode)

    Why not put some debugging code in the script to suggest switching the path inside the script if it fails? That would have saved me a lot of time, I thought it was a Java issue.

     
<< < 1 2 (Page 2 of 2)

Log in to post a comment.

MongoDB Logo MongoDB