Browse files

Fix for JAVA_HOME not being defined on ubuntu.

  • Loading branch information...
1 parent d447b3d commit d8e13c5ad1bf854f2561e245efb741af1521ebb1 @buckett buckett committed Sep 28, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0
@@ -5,3 +5,5 @@ export CATALINA_PID="$WORKSPACE/target/"
export CATALINA_OPTS="-server -Xms256m -Xmx1024m -XX:NewSize=192m -XX:MaxNewSize=384m -XX:PermSize=192m -XX:MaxPermSize=384m -Djava.awt.headless=true -Dsun.lang.ClassLoader.allowArraySyntax=true"
export CATALINA_HOME="$WORKSPACE/target/tomcat/"
export JAVA_OPTS="$JAVA_OPTS -Dsolr.solr.home=$CATALINA_HOME/solr/"
+# This sets JAVA_HOME to something sensible
+export JAVA_HOME=$(readlink -f /usr/bin/javac | sed "s:bin/javac::")

0 comments on commit d8e13c5

Please sign in to comment.