summarylogtreecommitdiffstats
path: root/idea.sh
diff options
context:
space:
mode:
Diffstat (limited to 'idea.sh')
-rwxr-xr-xidea.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/idea.sh b/idea.sh
new file mode 100755
index 000000000000..819297b29ce4
--- /dev/null
+++ b/idea.sh
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+# WARNING:
+# Running IntelliJ IDEA with java other than java 11
+# may cause various problems, such as Graddle import not working
+if [ -z "$IDEA_JDK" ] ; then
+ IDEA_JDK="/usr/lib/jvm/java-11-openjdk/"
+fi
+exec env IDEA_JDK="$IDEA_JDK" /usr/share/idea/bin/idea.sh "$@"
+
+# vim: ts=2 sw=2 et: