Menu

#327 Version 4.0.10 doesn't run with Java 7.

v4.x
closed
jvm (1) java7 (1)
1
2016-03-02
2014-11-15
No

The 4.0.10 version is not able to run with Java 7u71. Running results with the following error:

Exception in thread "main" java.lang.UnsupportedClassVersionError: org/yaoqiang/asaf/Launcher : Unsupported major.minor version 52.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:800)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:449)
at java.net.URLClassLoader.access$100(URLClassLoader.java:71)
at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:482)

Discussion

  • Peter "MoroS" Mrożek

    Using Java 8u25 I had some progress. The app launches, displays the splash screen and the tray icon (with Exit option only), but the main window does not appear.

     
  • 史耀强(Blenta)

    Thanks for reporting this bug. I have fixed it in the version 4.0.11.
    Please use "java -jar yaoqiang.jar -clean" for the first time to launch app.

    Best Regards,
    Blenta

     
  • 史耀强(Blenta)

    • status: open --> closed
    • Group: v3.0 --> v4.0
     
  • Peter "MoroS" Mrożek

    It's a lot better now. Thanks. :)

    I'm still getting a warning about an incompatible Java version (for 7 and 8), but I can get around it by just clicking "No". Seems to work fine for now, but I'll test it for a while.

    Just some info about the used VM:

    java version "1.7.0_71"
    OpenJDK Runtime Environment (IcedTea 2.5.3) (Arch Linux build 7.u71_2.5.3-1-i686)
    OpenJDK Server VM (build 24.65-b04, mixed mode)
    

    Same goes for Java 8 ("1.8.0_25").

    I'm currently finished creating the installation script for ArchLinux AUR (I guess I'll be the maintainer for that package from now on in AUR).

    The PKGBUILD has the following characteristics:

    • uses the official release,
    • contains information about licenses (GPL3 and "free for non-commercial use"),
    • installs in /opt/yaoqiang-bpmn-editor,
    • doesn't repackage anything (all original files are in the directory mentioned above and their structure remains unmodified),
    • adds an additional launch script (support for "-clean" option, see below) and an icon.

    To use your advice with the "-clean" option I've created an additional launch shell script, so that users don't need to bother:

     1
     2
     3
     4
     5
     6
     7
     8
     9
    10
    11
    #!/bin/sh
    CONF_DIR=~/.yaoqiang
    BUG_FILE=$CONF_DIR/.bug_327_fix
    if [ -f $BUG_FILE ];
    then
        java -jar /opt/yaoqiang-bpmn-editor/yaoqiang.jar
    else
        # bug #327 cleanup on first run
        java -jar /opt/yaoqiang-bpmn-editor/yaoqiang.jar -clean
        touch $BUG_FILE
    fi
    

    I'm trying to keep the package compatible with the licencing I found on the official site. Just letting you know, though. If you have anything you would like to see added or changed, then just notify me. :)

    The package script URL is https://aur.archlinux.org/packages/yaoqiang-bpmn-editor

     
  • Anonymous

    Anonymous - 2014-11-16

    There are some bugs ([bugs:#246],[bugs:#18],[bugs:#91],[bugs:#148]) when using OpenJDK. I find that [bugs:#246] is reported by Feanor12 (the submitter for this package in AUR). So using OpenJDK is not recommended.

     

    Related

    Bugs: #148
    Bugs: #18
    Bugs: #246
    Bugs: #91

  • Peter "MoroS" Mrożek

    Luckily they don't seem critical. It's probably because of the difference in the Swing framework implementation in Oracle's Java and OpenJDK (proprietary vs open). I don't think the situation will change, as Oracle and the OpenJDK are slowly deprecating Swing (in favour of JavaFX, I guess).

    The app does throw an exception from time to time (like in bug [#246]), but it doesn't prevent me from using it. I'll add a comment to the AUR package, that using OpenJDK might cause some side effects and that people are encouraged to use the Oracle's JVM.

     

    Related

    Bugs: #246

Anonymous
Anonymous

Add attachments
Cancel