How to change the Java Process name?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Scirious

    #1

    How to change the Java Process name?

    People, when executing a Java application the procces name given to it
    usually java.exe or javaw.exe. But how can I make it be called by the name
    of my application?

    Thanks,
    Scirious.
  • Sigmund Hansen

    #2
    Re: How to change the Java Process name?

    Scirious wrote:[color=blue]
    > People, when executing a Java application the procces name given to it
    > usually java.exe or javaw.exe. But how can I make it be called by the name
    > of my application?
    >
    > Thanks,
    > Scirious.[/color]

    By compiling a native version for windows?
    Or, you could copy the jvm and rename the files, although I can't
    guarantee that that would work...
    Or by making your own executable in C/some other language that compiles
    to a native one,
    and run the jvm from inside it, and at the end of your main function
    return whatever return code java returns...

    Comment

    • Scirious

      #3
      Re: How to change the Java Process name?

      I found one simple application called launch4j that does the trick. It
      seems to create a JNI that calls the JVM. I'm not sure how it works, but it
      works.

      Comment

      Working...