Menu

add custom java call to include java.exe.manifest

Help
2017-02-02
2017-02-05
  • Nenad Jovanovic

    Nenad Jovanovic - 2017-02-02

    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
  • Grzegorz Kowal

    Grzegorz Kowal - 2017-02-05

    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.

     
  • Nenad Jovanovic

    Nenad Jovanovic - 2017-02-06

    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

     
  • Grzegorz Kowal

    Grzegorz Kowal - 2017-02-06

    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.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.