docker-graalvm-maven icon indicating copy to clipboard operation
docker-graalvm-maven copied to clipboard

The JAVA_HOME environment variable is not defined correctly

Open ipconfiger opened this issue 1 year ago • 1 comments

[root@localhost DataCenter]# docker run --rm -it \

-v $PWD:/mnt/myproject:rw
-w /mnt/myproject
vegardit/graalvm-maven:latest-java17
mvn clean package

The JAVA_HOME environment variable is not defined correctly, this environment variable is needed to run this program.

ipconfiger avatar Apr 16 '24 03:04 ipconfiger

I cannot reproduce this, see:

docker run --rm -it vegardit/graalvm-maven:latest-java17 bash
$ echo $JAVA_HOME
/opt/graalvm

$ mvn --version
Apache Maven 3.9.6 (bc0240f3c744dd6b6ec2920b3cd08dcc295161ae)
Maven home: /opt/maven
Java version: 17.0.9, vendor: GraalVM Community, runtime: /opt/graalvm
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "6.6.22-boot2docker", arch: "amd64", family: "unix"

sebthom avatar Apr 16 '24 09:04 sebthom

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 14 days if no further activity occurs. If the issue is still valid, please add a respective comment to prevent this issue from being closed automatically. Thank you for your contributions.

github-actions[bot] avatar Jul 15 '24 16:07 github-actions[bot]