Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to rename java process? [duplicate]

Possible Duplicate:
How to rename java.exe/javaw.exe process?

Hi, I am working on java desktop application. When the program starts, it creates a process java.exe. I have not been bother about this. But now, one of my user want this process name to be changed to <project-name>.exe.

So, Please provide me some suggestions, how can I achieve this feature for my program?

like image 987
Vijay Shanker Dubey Avatar asked Feb 05 '26 08:02

Vijay Shanker Dubey


1 Answers

By nature, Java programs are usually interpreted by a JVM. The Java process you see is that JVM instance in fact.

To make what you want, you have to encapsulate the JVM in your own program so that you have apparently only one executable (and no JVM dependencies for your users).

I recommend you to have a look to these free projects:

  • http://jsmooth.sourceforge.net/
  • http://launch4j.sourceforge.net/

Doing a query like "java to exe" in Google can also helps to find the latest news. Looking into gihub could also help to find latest tools.

Note that if you do that, you loose one nice feature of Java which is cross-platform portability.

There are alternatives like JNLP and others.

You also can have a look to this good article

like image 175
рüффп Avatar answered Feb 07 '26 22:02

рüффп



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!