HI,
I have an app and when i run it on high resolution monitor I want to include manifests in order to disable dpiAware (to set dpiAware=false). So, I added java.exe.manifest and javaw.exe.manifest fo my jre and
when i run my app from command line (java -jar ....) it looks ok, but when i run using a launcher made with launch4j this does not work. Is there any option in launch4j how to do this? I tried also with "-Dsun.java2d.dpiaware=false" option, buy this does not work.
Thank you!
Last edit: Nenad Jovanovic 2017-02-03
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
It looks ok when i set 'console' as a 'headerType';
If i do this, is there any option to hide console screen, when start app, not to show console screen?
Thanks
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
You can't hide the console. But this is an interesting hint, as both console and gui headers use the same function for running the java application. This suggests that java.exe.manifest is found and javaw.exe.manifest for some reason not. Try checking javaw -jar if that works. Maybe there is a problem in the manifest file or its name.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
HI,
I have an app and when i run it on high resolution monitor I want to include manifests in order to disable dpiAware (to set dpiAware=false). So, I added java.exe.manifest and javaw.exe.manifest fo my jre and
when i run my app from command line (java -jar ....) it looks ok, but when i run using a launcher made with launch4j this does not work. Is there any option in launch4j how to do this? I tried also with "-Dsun.java2d.dpiaware=false" option, buy this does not work.
Thank you!
Last edit: Nenad Jovanovic 2017-02-03
It seems that the external manifest is ignored when launched by CreateProcess, I still don't know why.
There is no option to control this behavior.
It looks ok when i set 'console' as a 'headerType';
If i do this, is there any option to hide console screen, when start app, not to show console screen?
Thanks
You can't hide the console. But this is an interesting hint, as both console and gui headers use the same function for running the java application. This suggests that java.exe.manifest is found and javaw.exe.manifest for some reason not. Try checking javaw -jar if that works. Maybe there is a problem in the manifest file or its name.