Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JAVA_HOME not set for groovy #74

Open
Loki-Afro opened this issue Oct 21, 2016 · 0 comments
Open

JAVA_HOME not set for groovy #74

Loki-Afro opened this issue Oct 21, 2016 · 0 comments

Comments

@Loki-Afro
Copy link

JAVA_HOME not set for groovy

pwirth@tyr ~ % docker run --rm -i -t nacyot/groovy-groovy:2.3.3 bash
[ root@27e55624bc54:/source ]$ groovy -version
groovy: JAVA_HOME not set and cannot find javac to deduce location, please set JAVA_HOME.

The following seems to work

pwirth@tyr ~ % docker run --rm -i -t nacyot/groovy-groovy:2.3.3 bash                                                                                                                                                                    
[ root@15aa924c4149:/source ]$ export JAVA_HOME=$(readlink -f /usr/bin/java | sed "s:bin/java::")
[ root@15aa924c4149:/source ]$ groovy -version
Groovy Version: 2.3.3 JVM: 1.7.0_65 Vendor: Oracle Corporation OS: Linux
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant