Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Java desktop application launcher exe

843810Aug 28 2006 — edited Dec 20 2006
I have written a JSE desktop application which i want to launch using a launcher exe. So that users are not bothered about the location of the compatible JRE.
(I am not bothered about cross platform issues. I would be happy with a windows only solution :-)

I had written a small C program which uses CreateProcess() Win32 API function to launch a jvm. The path to the jvm will be read from a configuration file created during deployment/installation. But the problem with this approach is the there will be two different process entry in the Windows task manager. One for the launcher and another java.exe process created using the CreateProcess() call.

What i would really like is just a single entry in the Task Manager process list with the name of the launcher displayed and not the java.exe name. This way the user can see in the process list the memory usage and CPU utilization and disk IO information of the application easily.

Is there a way i could write a launcher which satisfies the above requirements.

Note: I have seen the LaunchAnythere java launcher created by InstallAnywhere which does exactly the same thing. I just want to know how they are doing it. Are they using some straight forward Windows API stuff or are they doing little MAGIC there in the launcher? :-)

Thanks in advance
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 17 2007
Added on Aug 28 2006
2 comments
667 views