I am Launching SQuirrel SQL on Mac OS X(El Capitan) that has JDK1.8 on it produces an error message saying the JDK-version should be at least 1.6. It then quits. SQL client version is 3.7. How do I resolve this?
I am Launching SQuirrel SQL on Mac OS X(El Capitan) that has JDK1.8 on it produces an error message saying the JDK-version should be at least 1.6. It then quits. SQL client version is 3.7. How do I resolve this?
I ran into similar issue and the following change fixed the issue. Open the Application Folder in finder and open the App Package Contents and navigate to Contents/MacOS/. Open the squirrel-sql.sh file and update the value of "SQUIRREL_SQL_HOME" around line 56.
Out of box, the value would be
SQUIRREL_SQL_HOME=`dirname "$0"`/Contents/Resources/Java
Update this to
SQUIRREL_SQL_HOME='/Applications/SQuirreLSQL.app/Contents/Resources/Java'
Thanks to https://sourceforge.net/p/squirrel-sql/bugs/1232/#6bc6
The shell script now comes with Alternative solutions ready. Alternative 2 works for me. Just commented out Alternative 1 and uncommented the 2.
#Alternative 1
#SQUIRREL_SQL_HOME=`dirname "$0"`/Contents/Resources/Java
#Alternative 2
SQUIRREL_SQL_HOME=$(echo $ABSPATH | grep -o '^/.*/Contents/')Resources/Java
#Alternative 3
#SQUIRREL_SQL_HOME=`/Applications/SQuirreLSQL.app/Contents/Resources/Java'
Open the script file as in @vijay answer.