Tuesday, January 28, 2020

Ubuntu Linux - Run jar for high DPI display

If you run Ubuntu (or a derivative) with a high DPI display (for me, a 4K laptop screen), it can be annoying when you run a Java program such as Ghidra and the user interface is tiny.

Run this to launch an executable jar, scaling all UI elements by 2x:
java -Dsun.java2d.uiScale=2.0 -jar my_program.jar

No comments:

Post a Comment