Can I find out if the java program was launched using java or javaw
- by saugata
This is related to an earlier question by a different user How to detect that code is running inside eclipse IDE
I noticed that eclipse always launches programs with javaw rather than java. (This does not imply a program launched with javaw was launched from eclipse).
I can find the arguments passed using
RuntimeMXBean RuntimemxBean =…