Skip to content
This repository has been archived by the owner on Dec 2, 2020. It is now read-only.

JAVA_HOME not set #4

Closed
pulse00 opened this issue Feb 21, 2013 · 2 comments
Closed

JAVA_HOME not set #4

pulse00 opened this issue Feb 21, 2013 · 2 comments

Comments

@pulse00
Copy link

pulse00 commented Feb 21, 2013

I've created a puppet-eclipse module to install eclipse with boxen. However, when starting eclipse i get the dialog from OSX to install Java, although java and javac is present in the terminal.

My guess is the missing ´JAVA_HOME` environment variable. Could you give me a hint to which directory this should be set?

@croaker
Copy link

croaker commented Feb 22, 2013

Hi there, I'm not sure if this solves your problem, but you can get the Java home by running /usr/libexec/java_home
in the terminal. This enables you to export it as an env var using export JAVA_HOME=$(/usr/libexec/java_home).

@wfarr wfarr closed this as completed in 8054759 Mar 5, 2013
@bryankennedy
Copy link

Could you help me understand how I should be using this. I'd assume that after including the java module in my boxen, that the JAVA_HOME env var would be setup, but it isn't.

Running this script, or manually adding this path to my shell profiles fixes that, I'm just wondering I should make that part of my manifest install, or if I'm missing something about the configuration of this module.

# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Development

No branches or pull requests

4 participants