Skip to content

Issue with Java 11 (no tools.jar existent) #119

@philipp-eliasch

Description

@philipp-eliasch

@patric-r,
I'm seeing this error with openjdk:
[user@server jvmtop-0.8.0]$ ./jvmtop.sh /usr/lib/jvm/java-11-openjdk-11.0.3.7-0.el7_6.x86_64 seems to be no JDK!

It has something to do with the tools.jar
[user@server jvmtop-0.8.0]$ grep -3 seems jvmtop.sh
TOOLSJAR="$JAVA_HOME/lib/tools.jar"

if [ ! -f "$TOOLSJAR" ] ; then
echo "$JAVA_HOME seems to be no JDK!" >&2
exit 1
fi

tools.jar which seems to be a prerequisite for running jvmtop was removed with java 9, see https://www.reddit.com/r/javahelp/comments/765mwr/installed_jdk_9_and_my_toolsjar_is_missing/

[user@server jvm]$ find /usr/lib/jvm/* -type f -name tools.jar
[user@server jvm]$

So it can't be used at least with OpenJDK or Amazon Corretto in Version 11.
Any ideas?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions