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.

[solved] yed instant-terminating

0 votes

So I already wrote this to an Q&A in the answer section an noticed, it might not be the best of places for this:

http://yed.yworks.com/support/qa/2860/java-lang-nosuchmethoderror-with-java-1-7-0-openjdk-0-25-2-3-10

When switching from OpenJDK to Oracle-Java on my Fedora17/Fedora18 systems, I am yet again facing another issue:

yEd is Instantly terminating on me, without any output what-so-ever:

[from my earlier answer-post:]

Thus I downloaded the yed.jnlp (from todays version), and ran a

javaws yed.jnlp

Java-Oracle starts up (build 1.7.0_25-b15), the 'Starting applications...' dialog/window popps up, Oracle is asking me if I am sure I want to run this software (I do *not* set the 'do not show this again' field), I choose "run"

And the Webstart terminates.

No error-Messages, no error-output on the commandline from where I started the javaws, nothing.

 

Next I decided, maybe a flaky jnlp. Is known to happen now and then.

So I got the yed-experts-version since I really don't need another jre on my system(s) -

java -version tells me:

[me@mybox yed-3.11]$ java -version
java version "1.7.0_25"
Java(TM) SE Runtime Environment (build 1.7.0_25-b15)
Java HotSpot(TM) 64-Bit Server VM (build 23.25-b01, mixed mode)

BUT if I run 'java -jar yed.jar' or similar (see below) it just exits, once more, without any message anywhere. It does not complain about missing dependencies, or other stuff, just exits. Near Instantly. Below is the timed- output of a call including all jars and stuff.

[me@mybox yed-3.11]$ date && time java -cp .:vectorgraphics.jar:yed.jar -jar yed.jar && date
Wed Jul  3 11:15:46 CEST 2013

real    0m0.356s
user    0m0.503s
sys    0m0.018s
Wed Jul  3 11:15:46 CEST 2013
[me@mybox yed-3.11]$

Any ideas anyone?

asked Jul 3, 2013 in Help by anonymous
edited Jul 9, 2013

See my comment to your answer in java.lang.NoSuchMethodError with java-1.7.0-openjdk-1.7.0.25-2.3.10.

Additionally I just tried the JRE-inclusion version of yEd-3.11 (64bit) linux variant;
After downloading, the installation went through without GUI errors (there were cmd-line errors, see below).

However launching the thus installed yEd version
using
/bin/sh /home/me/yEd/yEd
ran for a split second and than terminated without any message whatsover -
exactly like the stand-alone yEd version above.

Install errors:
[me@mybox Downloads]$ bash yEd-3.11_64-bit_setup.sh
Unpacking JRE ...
Preparing JRE ...
Starting Installer ...
Jul 09, 2013 12:25:04 PM java.util.prefs.FileSystemPreferences checkLockFile0ErrorCode
WARNING: Could not lock System prefs. Unix error code 7.
Jul 09, 2013 12:25:04 PM java.util.prefs.FileSystemPreferences syncWorld
WARNING: Couldn't flush system prefs: java.util.prefs.BackingStoreException: Couldn't get file lock.
Jul 09, 2013 12:25:21 PM java.util.prefs.FileSystemPreferences checkLockFile0ErrorCode
WARNING: Could not lock System prefs. Unix error code 7.
Jul 09, 2013 12:25:22 PM java.util.prefs.FileSystemPreferences checkLockFile0ErrorCode
WARNING: Could not lock System prefs. Unix error code 7.
Jul 09, 2013 12:25:24 PM java.util.prefs.FileSystemPreferences checkLockFile0ErrorCode
WARNING: Could not lock System prefs. Unix error code 7.
Jul 09, 2013 12:25:25 PM java.util.prefs.FileSystemPreferences checkLockFile0ErrorCode
WARNING: Could not lock System prefs. Unix error code 7.
Jul 09, 2013 12:25:27 PM java.util.prefs.FileSystemPreferences checkLockFile0ErrorCode
WARNING: Could not lock System prefs. Unix error code 7.
[me@mybox Downloads]$ cd ../yEd/
[me@myBox yEd]$ ls -al
total 27984
drwxr-xr-x  4 me OG-me-User     4096 Jul  9 12:25 .
drwx--x--x 71 me OG-me-User    24576 Jul  9  2013 ..
drwxr-xr-x  2 me OG-me-User     4096 Jul  9 12:25 .install4j
drwxr-xr-x  6 me OG-me-User     4096 Jul  9 12:25 jre
-rw-r--r--  1 me OG-me-User     4411 Jun 24 11:30 license.html
-rwx------  1 me OG-me-User    11570 Jun 24 11:31 uninstall
-rw-r--r--  1 me OG-me-User   799999 Jun 24 11:30 vectorgraphics.jar
-rwxr-xr-x  1 me OG-me-User    10728 Jun 24 11:31 yEd
-rwxr-xr-x  1 me OG-me-User      206 Jul  9 12:25 yEd Graph Editor.desktop
-rw-r--r--  1 me OG-me-User 27652168 Jun 24 11:30 yed.jar
[me@myBox yEd]$
[me@myBox yEd]$ bash ./yEd
testing JVM in /home/me/yEd/jre ...
[me@myBox yEd]$ /bin/sh /home/me/yEd/yEd
[me@myBox yEd]$

1 Answer

0 votes
The trick was killing dormant (failed/...) webstart sessions of yEd;

After those were removed,

the launch from commandline did work again.

Thanks for the pointers!
answered Jul 9, 2013 by anonymous