detecting jvm from the java_home

One can use the following method to detect whether one is using JVM or JRE.  I had to write this code as I wanted to execute jmap, jstack etc under certain conditions which doesn't seem to be possible if the java_home is set to the default JRE location.





Comments:

Post a Comment:
  • HTML Syntax: NOT allowed
About

This is the blog of a software engineer, specialized in identity management. Kunal Sinha works in Directory Services Engineering (OpenDS) team from Austin,Texas.

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today
Bookmarks