"SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\AppCompatFlags\\Layers", "SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\AppCompatFlags\\Layers") Import .win32.WinReg if(!Advapi32Util.registryKeyExists(WinReg.HKEY_CURRENT_USER, "SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\AppCompatFlags\\Layers"))Īdvapi32Util.registr圜reateKey(WinReg.HKEY_CURRENT_USER, You may have to open your applicaiton twice. Or else, you can use following java code to create registry through your application. open and try your with your application.create new string value- value name should be the like this.HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers you can create following registry key under this path.If that solves the problem, then you can use the mt.exe tool as above to patch the exe files so that you can distribute to your thousands of users without them having to manually set the compatibility settings. You can also address this problem by right clicking on the javaw.exe, choosing Properties, compatibility tab, Change High DPI Settings, and choose System (Enhanced). Note that the xml namespace is different.Ĭ:\>mt -nologo -outputresource:javaw.exe 1 -manifest man.xmlĬ:\>mt -nologo -outputresource:java.exe 1 -manifest man.xml c:\>mt -nologo -inputresource:javaw.exe -out:man.xml If you have MS dev tools (mt.exe) then you can patch the manifest in javaw.exe xml manifest to use a Windows 10 new setting described here ( ). It should be an xml file with an true element. You can confirm this using a zip utility to open javaw.exe as a zip file, and look at. This is because Java 7 added a manifest that tells the OS it knows how to scale correctly when it does not, and is supposedly fixed in Java 9 ( ).
0 Comments
Leave a Reply. |