Skip to content

Documentation for Ubuntu - Java Version and Environment Variable JAVA_HOME might be wrong #2656

Description

@tapwag

Expected behavior

According to:
https://phoenicisorg.github.io/phoenicis/Developers/build/#ubuntu-18041810-and-linux-mint-19

 wget https://download.java.net/java/GA/jdk11/13/GPL/openjdk-11.0.1_linux-x64_bin.tar.gz -O /tmp/openjdk-11+28_linux-x64_bin.tar.gz
 sudo tar xfvz /tmp/openjdk-11+28_linux-x64_bin.tar.gz --directory /usr/lib/jvm
 export JAVA_HOME="/usr/lib/jvm/jdk-11"

should work.

Actual behavior

Unfortunately my system gave me an error message when trying to run

mvn clean package

that JAVA_HOME hadn't been set correctly.

The actual export command of JAVA_HOME variable had to be set to
export JAVA_HOME="/usr/lib/jvm/jdk-11.0.1/"
which includes the 0.1 at the end.

With this the compile runs fine on my Slackware system.

Also bumping the Ubuntu version to 22.04 LTS might make sense. Is there a git-repository for the documentation where I could contribute?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions