unable to use jmap utility on Java runtime environment(j2re1.4.2_09)
JDK Version:
------------
bash-2.03$ pwd
/export/updates/jdks/j2sdk1.4.2_09/bin
bash-2.03$ ./java -version
java version "1.4.2_09-ea"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_09-ea-b01)
Java HotSpot(TM) Client VM (build 1.4.2_09-ea-b01, mixed mode)
NoClassDefFoundError throwing when i try to execute jmap command under
bash-2.03$ pwd
/export/updates/jdks/j2re1.4.2_09/bin
bash-2.03$ ./jmap
Exception in thread "main" java.lang.NoClassDefFoundError: sun/jvm/hotspot/tools/JMap
i observed the same behaviour if i try to execute jmap in
<j2sdk-home>/jre/bin
bash-2.03$ pwd
/export/updates/jdks/j2sdk1.4.2_09/jre/bin
bash-2.03$ ./jmap -h
Exception in thread "main" java.lang.NoClassDefFoundError: sun/jvm/hotspot/tools/JMap
bash-2.03$ ./jmap
Exception in thread "main" java.lang.NoClassDefFoundError: sun/jvm/hotspot/tools/JMap
When i execute the jmap command under
<j2se-home>/bin its working fine
bash-2.03$ pwd
/export/updates/jdks/j2sdk1.4.2_09/bin
----------------------------------------------
bash-2.03$ ./jmap -h
Usage: jmap [option] <pid>
(to connect to a live java process)
or jmap [option] <executable> <core>
(to connect to a core file)
or jmap [option] [server_id@]<remote server IP or hostname
(to connect to a remote debug server)
where option must be one of:
<no option> to print same info as Solaris pmap
-heap to print java heap summary
-heap:format=b to dump java heap in hprof binary format
-histo to print histogram of java object heap
-permstat to print classloader-wise perm gen statistics
-h | -help to print this help message
--------------------------------------------------
###@###.### 2005-05-16 16:11:07 GMT
JDK Version:
------------
bash-2.03$ pwd
/export/updates/jdks/j2sdk1.4.2_09/bin
bash-2.03$ ./java -version
java version "1.4.2_09-ea"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_09-ea-b01)
Java HotSpot(TM) Client VM (build 1.4.2_09-ea-b01, mixed mode)
NoClassDefFoundError throwing when i try to execute jmap command under
bash-2.03$ pwd
/export/updates/jdks/j2re1.4.2_09/bin
bash-2.03$ ./jmap
Exception in thread "main" java.lang.NoClassDefFoundError: sun/jvm/hotspot/tools/JMap
i observed the same behaviour if i try to execute jmap in
<j2sdk-home>/jre/bin
bash-2.03$ pwd
/export/updates/jdks/j2sdk1.4.2_09/jre/bin
bash-2.03$ ./jmap -h
Exception in thread "main" java.lang.NoClassDefFoundError: sun/jvm/hotspot/tools/JMap
bash-2.03$ ./jmap
Exception in thread "main" java.lang.NoClassDefFoundError: sun/jvm/hotspot/tools/JMap
When i execute the jmap command under
<j2se-home>/bin its working fine
bash-2.03$ pwd
/export/updates/jdks/j2sdk1.4.2_09/bin
----------------------------------------------
bash-2.03$ ./jmap -h
Usage: jmap [option] <pid>
(to connect to a live java process)
or jmap [option] <executable> <core>
(to connect to a core file)
or jmap [option] [server_id@]<remote server IP or hostname
(to connect to a remote debug server)
where option must be one of:
<no option> to print same info as Solaris pmap
-heap to print java heap summary
-heap:format=b to dump java heap in hprof binary format
-histo to print histogram of java object heap
-permstat to print classloader-wise perm gen statistics
-h | -help to print this help message
--------------------------------------------------
###@###.### 2005-05-16 16:11:07 GMT