-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsqlworkbench.sh
More file actions
31 lines (25 loc) · 897 Bytes
/
sqlworkbench.sh
File metadata and controls
31 lines (25 loc) · 897 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/bin/sh
# Start SQL Workbench/J in GUI mode
SCRIPT_PATH="$(dirname "$(readlink -f "$0")")"
JAVACMD="java"
if [ -x "$SCRIPT_PATH/jre/bin/java" ]
then
JAVACMD="$SCRIPT_PATH/jre/bin/java"
elif [ -x "$WORKBENCH_JDK/bin/java" ]
then
JAVACMD="$WORKBENCH_JDK/bin/java"
elif [ -x "$JAVA_HOME/jre/bin/java" ]
then
JAVACMD="$JAVA_HOME/jre/bin/java"
elif [ -x "$JAVA_HOME/bin/java" ]
then
JAVACMD="$JAVA_HOME/bin/java"
fi
cp=$SCRIPT_PATH/sqlworkbench.jar
cp=$cp:$SCRIPT_PATH/ext/*
# When running in batch mode on a system with no X11 installed, the option
# -Djava.awt.headless=true
# might be needed for some combinations of OS and JDK
# For Java 9 and above the following option might be needed:
# --add-opens java.desktop/com.sun.java.swing.plaf.windows=ALL-UNNAMED
exec "$JAVACMD" -Dvisualvm.display.name=SQLWorkbench -Dawt.useSystemAAFontSettings=on -cp "$cp" workbench.WbStarter "$@"