Skip to content

Termux Maven Tied to Java-17 #25027

Open
@LobsterMan123

Description

@LobsterMan123

I saw that the most recent openjdk version is openjdk-21. I installed it and immediately afterwards installed Maven at which point the installation processes indicated that openjdk-17 must also be co-installed, apparently, so Maven can work. I proceeded and indeed in my jvm folder I now see 2 java versions.

Would someone please explain what is going on with this curious installation? Why can't Maven work solely off of Java-21/openjdk-21? Will having two versions of Java evetually confuse Termux? I manually indicated in the .bashrc file for the JAVA_HOME variable to point to openjdk-21, but I'm still contused as why Maven appears to be tethered to Java-17 and doesn't just use Java-21. Having two versions of Java also makes me concerned about taking up more memory on the device too.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementjavaIssue is about Java related stuff

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions