0

When I start Java-applications with java.exe, every application has the same name in the process-manager. And the Java-processes are not distinguishable. Is it possible to write a simple C/C++-stub which loads the Java-runtime as a DLL and possibly the commandline-parameters passed to a exported function of the DLL so that the Java-process has its own identity?

Thanks in advance, Bonita.

Bonita Montero
  • 2,817
  • 9
  • 22
  • Yes, it's possible. – Andreas Oct 10 '16 at 20:02
  • 2
    Possible duplicate of: http://stackoverflow.com/questions/882826/how-to-change-the-name-of-a-java-application-process – Jesper Oct 10 '16 at 20:03
  • Possible duplicate of: http://stackoverflow.com/questions/819536/how-to-call-java-functions-from-c – Andreas Oct 10 '16 at 20:04
  • 1
    @Andreas but that is not what the OP's question is really about... (this is an [XY problem](http://meta.stackexchange.com/questions/66377/what-is-the-xy-problem)). – Jesper Oct 10 '16 at 20:08
  • It is better to use a pre-made java launcher as it is not as trivial as calling a single function. You can also simply copy/rename java.exe btw. – eckes Oct 10 '16 at 20:28

0 Answers0