summarylogtreecommitdiffstats
path: root/derive_jdk_from_path.patch
blob: 8e4b11584972aea430c1942010d4cf3233eb6fcb (plain)
1
2
3
4
5
6
7
8
9
10
11
--- a/build/linux/processing	2020-01-17 17:20:35.000000000 +0100
+++ b/build/linux/processing	2020-06-13 03:21:55.217817070 +0200
@@ -68,7 +68,7 @@
 log APPDIR
 
 # Try using a local JDK from the same directory as this script
-JDKDIR=`readlink -f "$APPDIR/java"`
+JDKDIR=`readlink -f $(dirname $(readlink -f $(which java)))/../../`
 make_jdkcp "$JDKDIR"
 log SUCCESS