I'm trying to run a Java application with -Dsun.java2d.dpiaware=false
argument but nothing happens.
I expect to have a blurred UI but with normal size of icons and fonts, it seems that this flag does not work.
I'm using JDK 1.8.0_45 on Windows 8.1.
I found this bug https://bugs.openjdk.java.net/browse/JDK-8080153 but I don't understand how to workaround it.
Fix for Windows, follow these steps:
Create a windows regedit new DWORD
HKEY_LOCAL_MACHINE > SOFTWARE > Microsoft > Windows > CurrentVersion > SideBySide
Create the two .manifest file (JDK)
Create the two .manifest file (JRE)
Restart your java application.
Code to Paste into the .manifest files
This fix can be used for any program, not only Java.
If you need to fix the DPI for a JNLP application launcher, you have to add the following key to the resources section inside the .jnlp file :
<property name="sun.java2d.dpiaware" value="false"/>
After Upgrading Windows (e.g from win10 to win10 1607), you should apply this fix again if it doesn't work anymore.
** Afer Updating Java, you should copy&paste .manifest files into new Java's directory.