Welcome to yEd Q&A!
Here you can ask questions and receive answers from other members of the community and yEd developers. And you can tell us your most wanted feature requests.

Java 9 Support

0 votes

As there is no proper HiDPI support in Java 8, using Java 9 is needed to scale the UI on Windows and Linux. (See http://openjdk.java.net/jeps/263 for details.) This also works for yFiles (tested in BinNavi).

Two flags need to be added to launch yEd properly.

java --add-exports=java.desktop/com.sun.java.swing.plaf.windows=ALL-UNNAMED --add-exports=java.desktop/com.apple.laf=ALL-UNNAMED -jar yed.jar

asked Jan 20, 2017 in Help by dave (120 points)
recategorized Jan 23, 2017 by thomas.behr
This works for me on CentOS 7 after installing JRE 9.0.4

Make sure to override the GDK_SCALE environment variable if you need to:
env GDK_SCALE=2 /usr/java/jre-9.0.4/bin/java --add-exports=java.desktop/com.sun.java.swing.plaf.windows=ALL-UNNAMED --add-exports=java.desktop/com.apple.laf=ALL-UNNAMED -jar yed.jar

I do get some warnings in my terminal:
WARNING: package com.apple.laf not in java.desktop
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by com.jidesoft.swing.JideTabbedPane (file:/opt/yEd/yed.jar) to field javax.swing.JTabbedPane.visComp
WARNING: Please consider reporting this to the maintainers of com.jidesoft.swing.JideTabbedPane
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release

I haven't tested the full stability of yEd with this new JRE, but I can confirm it opens with the correct Display Scale; only in JRE 9.

David

1 Answer

0 votes
hi. this fails in kubuntu 17.04 with openjdk-9-jre. please fix. the jar app freezes on splash screen, at "enabling module yed". thanks.
answered Sep 13, 2017 by anonymous

yEd does not support OpenJDK! Moreover, Java 9 is still beta - use an officially released Oracle Java 8 runtime environment to run yEd. The latest official Oracle Java 8 is 8u144 available from Orcale's Java SE Downloads site.

Is this (waiting for Java 9) going to be the official solution to the unusably small font size of yEd on Linux? I see people have been asking for this feature for *years*.. Is it really that hard to add an entry in the settings file to set the GUI font size?
Imprint | Privacy Policy