Is there a way to find the name of the program that is running in Java? The class of the main method would be good enough.
System.getProperty("sun.java.command")