How to stop running the same Java application twice?

Hi

We start our Java Swing application by callingjava QuicksSmart.It runs on one JVM.

When we run the same application, by using same command, second time (It runs on other JVM).

Our requirement is, should not run or open the application second time, if it is already running.

So some how we need to detect the application is already running, give the error message when we start second time.

We may do this by using file system i.e. writing the status to a file or locking or.. But we DON扵 WANT to use file mechanism. Is there any better approach to find it?

Like, find all the java applications running on PC and find whether it is same or not? Is it possible?

Or any other ways?

Thanks !

[754 byte] By [kvally74a] at [2007-11-26 18:37:23]
# 1
Found solution: http://forum.java.sun.com/thread.jspa?threadID=193903 http://forum.java.sun.com/thread.jspa?threadID=770796Thanks!
kvally74a at 2007-7-9 6:11:26 > top of Java-index,Desktop,Runtime Environment...