JAVA_HOME on Mac Mavericks

272 views
Skip to first unread message

Jeff Schmitz

unread,
Mar 28, 2014, 3:41:59 PM3/28/14
to jenkins...@googlegroups.com
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

Stephen Connolly

unread,
Mar 28, 2014, 5:19:14 PM3/28/14
to jenkins...@googlegroups.com
FYI right now most versions of Jenkins bomb out on java 1.8 (can't save config)
--
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 jenkinsci-use...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


--
Sent from my phone

Jeffrey Schmitz

unread,
Mar 28, 2014, 11:01:06 PM3/28/14
to jenkins...@googlegroups.com
Bummer, and there seems no easy way to remove Java 8 from a Mac once installed.


You received this message because you are subscribed to a topic in the Google Groups "Jenkins Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jenkinsci-users/3XVGjPL1eGs/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jenkinsci-use...@googlegroups.com.

alex ouzounis

unread,
Mar 30, 2014, 4:43:14 PM3/30/14
to jenkins...@googlegroups.com
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


Alex
Reply all
Reply to author
Forward
0 new messages