Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Has the Java dependency moved on from 8 to 11? :-( #1383

Open
mistyn8 opened this issue Jan 7, 2023 · 2 comments
Open

Has the Java dependency moved on from 8 to 11? :-( #1383

mistyn8 opened this issue Jan 7, 2023 · 2 comments

Comments

@mistyn8
Copy link

mistyn8 commented Jan 7, 2023

Error: A JNI error has occurred, please check your installation and try again
Exception in thread "main" java.lang.UnsupportedClassVersionError: com/bwssystems/HABridge/HABridge
has been compiled by a more recent version of the Java Runtime (class file version 55.0), 
this version of the Java Runtime only recognizes class file versions up to 52.0
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:763)
        at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
        at java.net.URLClassLoader.defineClass(URLClassLoader.java:468)
        at java.net.URLClassLoader.access$100(URLClassLoader.java:74)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:369)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:363)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:362)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
        at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:495)
        ```
@mistyn8
Copy link
Author

mistyn8 commented Jan 7, 2023

PS I'm trying to get this running on a DSM 6.2.4-25556 Update 6 , Synology DS212j with the ARM (Marvell Kirkwood 88F6281) so am limited to JAVA SE Embedded.

So can't update beyond ejdk-8u211-linux-arm-sflt.tar.gz
https://www.oracle.com/java/technologies/javaseembedded8u211-downloads.html

@mistyn8
Copy link
Author

mistyn8 commented Jan 7, 2023

Doh..
https://github.com/bwssytems/ha-bridge/releases/tag/v5.4.1

both these are J11...

  • ha-bridge-5.4.1-java11.jar
  • ha-bridge-v5.4.1.jar

ha-bridge-5.4.1.jar is the java 8 version!

I'd incorrectly assumed from the datestamp that the v5.4.1.jar was the one to plump for!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant