-
Notifications
You must be signed in to change notification settings - Fork 221
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
Maven needs JAVA_HOME set to: /usr/lib/jvm/java-1.8.0-amazon-corretto/jre #481
Comments
Can you share which Corretto package(s) you currently have installed? The value You'll notice in the error message that a full jdk is needed:
|
in my docker file i have the below
Note im setting the JAVA_HOME env based on what i saw here: corretto/corretto-8-docker@055b9f3 Based on what you state, is the above just the JRE install then? |
rebuilding the container with |
I take this back...it doesnt work with `java-1.8.0-amazon-corretto-devel also seem to install java 17 |
Are you also installing Maven from the AL2023 yum repositories? If so, that is what is pulling in Java 17. The reason is that Java 17 is the "system Java" for Amazon Linux 2023 and most packages that require Java are built against that version. You can run On a docker I started if I install
|
ah..yes, i am installing maven - that answers that bit of confusion. On the jdk (devel) vs jre - what are the JAVA_HOME supposed to be they seem different. In order to get Maven to find java, for the JRE, i needed |
Maven is looking for
|
If JAVA_HOME is
/usr/lib/jvm/java-1.8.0-amazon-corretto, maven complains:
Setting JAVA_HOME to
/usr/lib/jvm/java-1.8.0-amazon-corretto/jre
resolves the issue, but not sure of broader impact in doing so.
The text was updated successfully, but these errors were encountered: