Skip to content

Instantly share code, notes, and snippets.

@jaysonsantos
Last active October 11, 2017 10:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jaysonsantos/05a64c61c0f83f24ba7cc18d3fc4eefe to your computer and use it in GitHub Desktop.
Save jaysonsantos/05a64c61c0f83f24ba7cc18d3fc4eefe to your computer and use it in GitHub Desktop.
Force spoon to always run on java8
--- spoon.sh.bkp 2017-10-11 11:43:09.000000000 +0200
+++ spoon.sh 2017-10-11 11:52:07.000000000 +0200
@@ -1,5 +1,15 @@
#!/bin/sh
+# Hacky way to force java8
+JAVA_VMS_LOCATION="/Library/Java/JavaVirtualMachines"
+LATEST_JAVA_8="$(ls $JAVA_VMS_LOCATION | grep jdk1.8 | sort | tail -n 1)"
+if [ -z "$LATEST_JAVA_8" ]; then
+ echo "Java 8 not found"
+ exit 1
+fi
+export PENTAHO_JAVA_HOME="${JAVA_VMS_LOCATION}/${LATEST_JAVA_8}/Contents/Home"
+
+
# **************************************************
# ** Set these to the location of your mozilla
# ** installation directory. Use a Mozilla with
# ** Gtk2 and Fte enabled.

First install java8 from oracle website or if you use hombrew you can install it with brew cask install java8 and then go to data-integration folder and run this:

curl https://gist.githubusercontent.com/jaysonsantos/05a64c61c0f83f24ba7cc18d3fc4eefe/raw/1051711c990c16876e0ea57521810b4778067fd7/force_spoon_java8.patch | patch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment