To have your Mac pickup the latest Java installed you can do: #export JAVA_HOME export JAVA_HOME=`/usr/libexec/java_home` PATH=$PATH:$JAVA_HOME/java
You can find more information about this utility here: https://developer.apple.com/library/mac/documentation/Darwin/Reference/Manpages/man1/java_home.1.html Alex On Friday, March 28, 2014 7:41:59 PM UTC, Jeff Schmitz wrote: > > Hello, > Short version: What do you set JAVA_HOME to when configuring Jenkins on > a Mac Mavericks machine with a newly installed Java 1.8 from Oracle? > > I'm a newbie to Jenkins and am trying to get an initial setup running per > the Jenkins Definitive Guide book. I recently installed the latest Java > from Oracle (1.8) on a Mavericks machine that didn't have Java installed. > Now I can't figure out what to set JAVA_HOME to when configuring Jenkins. > I tried /usr/libexec/java_home but Jenkins doesn't like that, it says it's > not a directory. I think tried what /usr/libexec/java_home points to but > Jenkins said it doesn't look like a java distribution. > > Thanks! > Jeff > -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
