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.

Categories

can't run yEd 3.21.1 on linux

0 votes
I'm running Linux, Fedora 34, 64 bit.

I've tried installing yEd 3.21.1 two different ways, and once installed it will not run.

If I download the .jar file and try java -verbose -jar yed.jar, it shows a long list of classes that are loaded, and then exits cleanly, no GUI, no error messages.  If I use the sh-based installer and try to run the yed script it puts in ~/yEd, it exits cleanly with no error messages and no GUI.

Luckily, I can run yEd 3.20.1 just fine. I downloaded the .jar file, and from there I can run java -jar yed.jar, and everything works.

What's wrong with 3.21.1 and how do I fix it?
in Help by

1 Answer

0 votes

This is the first time, this problem is reported. Moreover, this is not a general problem - on our Ubuntu Linux and Kubuntu Linux test systems, I can install and run yEd 3.21.1 from the shell script with bundled JRE as well as run the yEd jar from command line with a global JRE just fine.

The only thing to try I can think of, is (temporarily) removing your yEd profile directory. I.e. since you are on Linux and you were already using yEd 3.20.1, there is a .yEd directory in your user home directory. Rename the .yEd directory to something else and try running yEd 3.21.1 once more.

May I ask which exact version of Java you are using when you try to run yEd with java -jar yed.jar?

by [yWorks] (161k points)
Same problem here:
>java --version
>openjdk 17.0.2 2022-01-18
>OpenJDK Runtime Environment 21.9 (build 17.0.2+8)
>OpenJDK 64-Bit Server VM 21.9 (build 17.0.2+8, mixed mode, sharing)

>uname -a
>Linux BlackBox 5.15.16-200.fc35.x86_64 #1 SMP Thu Jan 20 15:38:18 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux

3.20.1 is running fine but 3.21 just returns with no output to the console (tested with different jre versions including the yed-supplied ones (8 & 15))

yEd does not support Java 16 or Java 17, because as of Java 16 the Java virtual machine enforces module system restrictions even for non-modular applications like yEd.
If you want to test yEd with Java 16/17 nonetheless, you will need to specify additional virtual machine options at the very least.

That said, the only difference from yEd 3.20.1 to yEd 3.21 that may prevent yEd from starting at all is the bundled Java runtime environment. yEd 3.20.1 was delivered with Java 14.0.1 whereas yEd 3.21 was delivered with Java 15.0.2.

You could try installing yEd 3.20.1 and then replacing the yed.jar file with the corresponding jar file from the zipped yEd Jar file for 32-bit and 64-bit operating systems.

Thanks for your reply!

I'm sorry, but today i've started the same command "java -jar yed.jar" with "OpenJDK Runtime Environment 21.9 (build 17.0.2+8)" and it runs fine. I dont know why. :-)
Legal Disclosure | Privacy Policy
...