Skip to content
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

Issue using with openjdk #100

Open
cbrdy opened this issue Apr 14, 2017 · 2 comments
Open

Issue using with openjdk #100

cbrdy opened this issue Apr 14, 2017 · 2 comments

Comments

@cbrdy
Copy link

cbrdy commented Apr 14, 2017

@patric-r,
I'm seeing this error with openjdk.
/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.131-2.6.9.0.el7_3.x86_64/jre seems to be no JDK!
but when I manually set the path and run from command line without using jvmtop.sh, it doesnt show any process running (nor even the jvmtop process itself). All I see is shown below. I also have tomcat process running but it doesnt show that too.

 JvmTop 0.8.0 alpha - 13:29:12,  amd64,  1 cpus, Linux 3.10.0-51, load avg 0.00
 http://code.google.com/p/jvmtop

  PID MAIN-CLASS      HPCUR HPMAX NHCUR NHMAX    CPU     GC    VM USERNAME   #T DL
@zls1988
Copy link

zls1988 commented Apr 23, 2017

Hello! I think this is because jre is not "jdk", you need set JAVA_HOME = /path/to/java/jdk (not jre).
If you look /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.131-2.6.9.0.el7_3.x86_64/, you find only jre.

@cdalexndr
Copy link

cdalexndr commented Jan 21, 2021

sh-4.4# $JAVA_HOME/bin/java -version
openjdk version "15.0.1" 2020-10-20
OpenJDK Runtime Environment AdoptOpenJDK (build 15.0.1+9)
OpenJDK 64-Bit Server VM AdoptOpenJDK (build 15.0.1+9, mixed mode, sharing)
sh-4.4# ./jvmtop.sh
 seems to be no JDK!

After checking the shell script, it seems that tools.jar is missing:

TOOLSJAR="$JAVA_HOME/lib/tools.jar"                    
                                                       
if [ ! -f "$TOOLSJAR" ] ; then                         
        echo "$JAVA_HOME seems to be no JDK!" >&2      
        exit 1                                         
fi                                                     
sh-4.4# cd $JAVA_HOME\lib
sh-4.4# ls | grep tools
sh-4.4#

https://stackoverflow.com/questions/53707666/how-to-get-tools-jar-for-openjdk-11-on-windows
It seems jvmtop only works until jdk8.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants