tags:

views:

2908

answers:

5

Always when I run java application it will display in Windows Task Manager is java.exe or javaw.exe. How to rename java.exe or javaw.exe process without wrapper by other programming languages.

+1  A: 

I believe your best bet is to use an ahead-of-time compiler like Excelsior JET to produce an executable. As they mention, you could also use a custom laucher or wrapper instead.

Michael Myers
The second link has a convenient list of free and non-free java executable wrappers.
sk
+6  A: 

You could use jSmooth:

JSmooth is a Java Executable Wrapper. It creates native Windows launchers (standard .exe) for your java applications.

johnstok
+7  A: 

If you are confused by looking at process names that are all the same (java.exe), try to use Process Explorer instead of Task Manager, and display the command line field. This way, you can see the class or jar arguments that differentiate one process from another.

gimel
Wow! Good recommendation
Fuangwith S.
Not new here (http://stackoverflow.com/questions/18126/what-tools-other-than-ide-to-you-find-useful), but Java guys seem a little windows agnostic.
gimel
+1  A: 

In easy way and badly style, you can copy java.exe or javaw.exe (execute file) and rename to new process name that you want.

Fuangwith S.
+4  A: 

I suspect operating systems are generally not very fond of processes trying to rename their "image". If this was possible it would for instance be very easy for a virus to impersonate a legitimate process.

By the way, you can also use "jps.exe" to list all Java processes and their corresponding main class. "jps.exe" is found in the bin directory of your Java installation.

volley