Page 1 of 1

old plugins + new nethome no go

Posted: Sun Sep 04, 2016 9:54 pm
by Nasty76
I was couple day ago update my test rpi3 to primary nethome machine but , browser say: starting opennethomeserver
creating server instance (done)
initialize logger ( done)
scanning for plugins
and nothing happened :( :(
I have 6 important plugins which I need to use :(
btw uptime this moment 335 days =) in raspberry pi 2+
oh now I debug more problem my wemo plugin where is powersocket picture , and my clock item failed :(


I get this error in debug mode:
Exception in thread "main" java.lang.UnsupportedClassVersionError: WemoInsightSwitchne : 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 java.lang.ClassLoader.loadClass(ClassLoader.java:358)
at nu.nethome.util.plugin.SelectivePluginScanner.extractPluginsFromJar(SelectivePluginScanner.java:107)
at nu.nethome.util.plugin.SelectivePluginScanner.scanForPlugins(SelectivePluginScanner.java:66)
at nu.nethome.home.impl.HomeManagerStarter.go(HomeManagerStarter.java:119)
at nu.nethome.home.start.StaticHomeManagerStarter.main(StaticHomeManagerStarter.java:32)


and clock item give this error
Exception in thread "main" java.lang.UnsupportedClassVersionError: Kello : 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 java.lang.ClassLoader.loadClass(ClassLoader.java:358)
at nu.nethome.util.plugin.SelectivePluginScanner.extractPluginsFromJar(SelectivePluginScanner.java:107)
at nu.nethome.util.plugin.SelectivePluginScanner.scanForPlugins(SelectivePluginScanner.java:66)
at nu.nethome.home.impl.HomeManagerStarter.go(HomeManagerStarter.java:119)
at nu.nethome.home.start.StaticHomeManagerStarter.main(StaticHomeManagerStarter.java:32)
any hope to get fixed this or I need keep some old version of nethome?

Re: old plugins + new nethome no go

Posted: Mon Sep 05, 2016 5:34 pm
by stefangsbb
This issue has to do with Java versions. What the error says is that the classes are compiled with Java 8 (meaning that you used Java Development Kit JDK 8 when you built the plugins). However the Java Runtime Environment you have installed on your new machine has a lower version, probably Java 7, so it does not understand the newer format.

You can verify the java version on your machine by typing:

Code: Select all

java -version
at the command prompt.

The best solution is probably to upgrade the JRE to Java 8.

Re: old plugins + new nethome no go

Posted: Mon Sep 05, 2016 6:48 pm
by Nasty76
wow thanks for fast answer =) i was sure u not break nethome support =) awesome
thanks for fast answer