so running openhab
within raspberry pi
, saved .jar
file in os x , run within os x terminal , following error. can please let me know how can fix that?
java -jar amazon-echo-bridge-0.2.1.jar –upnp.config.address=192.168.1.105 exception in thread “main” java.lang.unsupportedclassversionerror: com/armzilla/ha/springbootentry : unsupported major.minor version 52.0 @ java.lang.classloader.defineclass1(native method) @ java.lang.classloader.defineclass(classloader.java:800) @ java.security.secureclassloader.defineclass(secureclassloader.java:142) @ java.net.urlclassloader.defineclass(urlclassloader.java:449) @ java.net.urlclassloader.access$100(urlclassloader.java:71) @ java.net.urlclassloader$1.run(urlclassloader.java:361) @ java.net.urlclassloader$1.run(urlclassloader.java:355) @ java.security.accesscontroller.doprivileged(native method) @ java.net.urlclassloader.findclass(urlclassloader.java:354) @ org.springframework.boot.loader.launchedurlclassloader.doloadclass(launchedurlclassloader.java:163) @ org.springframework.boot.loader.launchedurlclassloader.loadclass(launchedurlclassloader.java:136) @ java.lang.classloader.loadclass(classloader.java:358) @ org.springframework.boot.loader.mainmethodrunner.run(mainmethodrunner.java:46) @ java.lang.thread.run(thread.java:745)
i have downloaded jar file here , following this tutorial.
the jar runs within raspbian hoping run os x because i cannot install chromium on raspbian.
however when running within raspbian error:
asticsearchautoconfiguration : closing elasticsearch client 2016-01-24 23:07:58.279 info 2411 --- [ main] org.elasticsearch.node : [bres] stopping ... 2016-01-24 23:07:58.336 info 2411 --- [ main] org.elasticsearch.node : [bres] stopped 2016-01-24 23:07:58.337 info 2411 --- [ main] org.elasticsearch.node : [bres] closing ... 2016-01-24 23:07:58.413 info 2411 --- [ main] org.elasticsearch.node : [bres] closed java.lang.reflect.invocationtargetexception @ sun.reflect.nativemethodaccessorimpl.invoke0(native method) @ sun.reflect.nativemethodaccessorimpl.invoke(nativemethodaccessorimpl.java:62) @ sun.reflect.delegatingmethodaccessorimpl.invoke(delegatingmethodaccessorimpl.java:43) @ java.lang.reflect.method.invoke(method.java:483) @ org.springframework.boot.loader.mainmethodrunner.run(mainmethodrunner.java:53) @ java.lang.thread.run(thread.java:744) caused by: java.lang.illegalstateexception: tomcat connector in failed state @ org.springframework.boot.context.embedded.tomcat.tomcatembeddedservletcontainer.start(tomcatembeddedservletcontainer.java:157) @ org.springframework.boot.context.embedded.embeddedwebapplicationcontext.startembeddedservletcontainer(embeddedwebapplicationcontext.java:288) @ org.springframework.boot.context.embedded.embeddedwebapplicationcontext.finishrefresh(embeddedwebapplicationcontext.java:141) @ org.springframework.context.support.abstractapplicationcontext.refresh(abstractapplicationcontext.java:483) @ org.springframework.boot.context.embedded.embeddedwebapplicationcontext.refresh(embeddedwebapplicationcontext.java:118) @ org.springframework.boot.springapplication.refresh(springapplication.java:686) @ org.springframework.boot.springapplication.run(springapplication.java:320) @ org.springframework.boot.springapplication.run(springapplication.java:957) @ org.springframework.boot.springapplication.run(springapplication.java:946) @ com.armzilla.ha.springbootentry.main(springbootentry.java:14) ... 6 more pi@raspberrypi /opt/openhab/echo $
mona,
you're trying run jar file using java 7, while designed run on java 8. install java 8 , run jar using fix error.
Comments
Post a Comment