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 has to point to a JRE inside a JDK #1

Open
sdrab opened this issue Apr 10, 2018 · 0 comments
Open

JAVA_HOME has to point to a JRE inside a JDK #1

sdrab opened this issue Apr 10, 2018 · 0 comments

Comments

@sdrab
Copy link

sdrab commented Apr 10, 2018

I just tried to build the training ressources with mvn package and experienced the following error:

[INFO] hadoop-skeleton .................................... FAILURE [  0.697 s]
…
[ERROR] Failed to execute goal on project hadoop-skeleton: Could not resolve dependencies for project de.dimajix.training:hadoop-skeleton:jar:1.0.0: Could not find artifact jdk.tools:jdk.tools:jar:1.8 at specified path /usr/lib/jvm/java-8-openjdk-amd64/jre/../lib/tools.jar -> [Help 1]

My local solution was to set JAVA_HOME to a directory of a JRE that is located within a JDK. Thereafter, $JAVA_HOME/../lib/tools.jar (.. seems to go from the inner JRE into the outer JDK directory) can be successfully resolved and the build works on my machine.

I encountered this error on Windows 10 (that has this JDK/JRE-structure) as well as in my Ubuntu shell (that does not have this JDK/JRE-structure and I would have to create a symlink to satisfy the implicit assumption).

I see two possible solutions here:

  • fix the resolution of tools.jar
  • document the dependency to a JRE that is located inside a JDK in the README.md.

Hope this helps you,
Stephan

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