patric-r / jvmtop

Java monitoring for the command-line, profiler included
GNU General Public License v2.0
1.22k stars 252 forks source link

feature request - command line argument for jdk path #80

Open seannybgoode opened 8 years ago

seannybgoode commented 8 years ago

I use several different JDKs for testing and compatibility purposes, and I like to have those lying around in places that are convenient for me. It would be very useful to be able to specify which jdk to use when running jvmtop.

JigarJoshi commented 8 years ago

Hi, is just JAVA_HOME env variable not enough here for the use case ?

seannybgoode commented 8 years ago

it seems to be picky about certain configurations.

From my console just now:

sean@laptop:~/Desktop/jvmtop$ echo $JAVA_HOME /usr/bin/jdk/bin sean@laptop:~/Desktop/jvmtop$ '/home/sean/Desktop/jvmtop/jvmtop.sh' /usr/lib/jvm/java-7-openjdk-amd64/jre seems to be no JDK! sean@laptop:~/Desktop/jvmtop$

seannybgoode commented 8 years ago

And just troubleshooting:

sean@laptop:~/Desktop/jvmtop$ . /etc/environment sean@laptop:~/Desktop/jvmtop$ '/home/sean/Desktop/jvmtop/jvmtop.sh' /usr/lib/jvm/java-7-openjdk-amd64/jre seems to be no JDK! sean@laptop:~/Desktop/jvmtop$ echo $JAVA_HOME /usr/bin/jdk/

patric-r commented 8 years ago

Hi, does /usr/bin/jdk really contain a jdk? Can you execute ls /usr/bin/jdk?