From Java, is it possible to get the complete commandline with all arguments that started the application?
System.getEnv() and System.getPropertie
System.getEnv()
System.getPropertie
You might want to look into how jps does this. It's a Java program that is able to get the full command line for all Java processes, including full class name of main class and JVM options.
jps
If you are using solaris as the OS, take a look at "pargs" utility. Prints all the info required.