B4J Question How to change visible name in task manager?

amorosik

Expert
Licensed User
I have a program created in B4J After verifying that it worked correctly
I compiled it in release and created the package with 'create standalone package'
Let's suppose that the file ..\objects\temps\build\pippo.exe is created
When I start the program on Windows, 'OpenJDK Platform binary' appears in the task manager
In essence, the name of the executable file started and the name of the process visible in the task manager are different
How can I make the same name as the file created by the package manager (and therefore in my case pippo.exe) appear in the Windows Task Manager?
 

aeric

Expert
Licensed User
Longtime User
Use Resource Hacker. You can change the icon too.

 
Upvote 0
Solution

amorosik

Expert
Licensed User
When you use 'Create Standalone Package' two separate executables are created, with the same file name
The first one inside ..\objects\temp\build
The second one in ..\objects\temp\build\bin

Which one is the real executable that needs to be modified with Resource hacker ?
I ask this because I tried to modify the 'File Description' field on both, but so far without success
 
Upvote 0

aeric

Expert
Licensed User
Longtime User
If you read the tutorial, it is the second, on point #2.
 
Upvote 0

Daestrum

Expert
Licensed User
Longtime User
I think you will find the one in objects/temp/build/bin is not actually your app but a renamed javaw.exe ( the theory being if you rename javaw.exe then task manager shows that in place of OpenJDK Platform binary) although this doesn't seem to work on my windows 11.

**edited: corrected java > javaw (as properties tell me it was originally javaw.exe)
 
Last edited:
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…