This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Java in General and the fly likes How to get the JVM process name? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "How to get the JVM process name?" Watch "How to get the JVM process name?" New topic
Author

How to get the JVM process name?

Vinney Shanmugam
Ranch Hand

Joined: Aug 27, 2008
Posts: 104
Is there any API's available in java to get JVM name under which a java program is running?
getProcessName() sort of thing?
Please help me....
Sebastian Janisch
Ranch Hand

Joined: Feb 23, 2009
Posts: 1183
System.getProperty(String) might be what you are looking for ..

check http://mgrand.home.mindspring.com/java-system-properties.htm

for a list of property names


JDBCSupport - An easy to use, light-weight JDBC framework -
Vinney Shanmugam
Ranch Hand

Joined: Aug 27, 2008
Posts: 104
Thanks for the reply.
But, that list is not having what i wanted.

My question is how to get the java process name? when yous start any java program it runs as a process. I want to that process name? Also, is there ways to check JVM's running and how many?
Sebastian Janisch
Ranch Hand

Joined: Feb 23, 2009
Posts: 1183
there is a discussion on that here
http://www.coderanch.com/t/109334/Linux-UNIX/Get-UNIX-process-ID-java
 
jQuery in Action, 2nd edition
 
subject: How to get the JVM process name?
 
Similar Threads
firewall and javaw.exe and jvm
static class variable
System Property Setting and JVM
Difference
match a thread id to the JVM spawning it?