JDK 8 support? (Error exporting bundle...) [message #1633464] |
Tue, 24 February 2015 16:59  |
Eclipse User |
|
|
|
Greetings! I'm trying out the Kura platform on my shiny, new Raspberry Pi 2...
I know that Kura recommends JDK 7 and says absolutely nothing about 8 but the latest Raspbian installed from the latest NOOBS has JDK 8 pre-installed so I figured I'd roll with it... (really, you should mention *something* about JDK 8 cause people are gonna to try it)
In any case, the latest Kura .deb installed on the Pi without issue after I installed a couple of dependencies (dos2unix and telnet). I then proceeded to setup the Eclipse dev. environment on my Mac. I went through all of the steps in the Documentation but ran into a hickup at the "Export the OSGi Bundle" step of the "Hello World Example" page. When I attempt to export I get the following error:
Processing inclusion from feature org.eclipse.pde.container.feature: Bundle org.eclipse.kura.example.hello_osgi_1.0.0.qualifier failed to resolve.:
Missing Constraint: Bundle-RequiredExecutionEnvironment: JavaSE-1.8
Host plug-in JavaSE_0.0.0 has not been found.
Is this a "you're not using JDK 7" issue or something else? JDK 8 is defined as default in eclipse and is the JVM defined for the projects. Any ideas on what might be going on?
Thanks for any help!
|
|
|
|
|
|
|
|
|
|
|
Re: JDK 8 support? (Error exporting bundle...) [message #1751614 is a reply to message #1751334] |
Wed, 11 January 2017 17:39  |
Eclipse User |
|
|
|
Hello,
For clarification, there is no issue running Kura on JDK 8. The only limitation is that you cannot use Java 8 constructs within your application. To put another way, your Kura application has to be compatible with Java 7. This does not mean that you cannot run your application and Kura on Java 8. To get your application to work, simply remove "Bundle-RequiredExecutionEnvironment: JavaSE-1.8" from your MANIFEST.MF file. Assuming you are not using Java 8 specific code within your application.
Also, Kura already includes jdk.dio, is there a reason you need to use a separate Jar?
FWIW, we are moving to Java 8 (Equinox 3.11) in Kura v3.0.0. We hope to have a milestone release ready by the end of January and a full release ready by the end of March.
Thanks,
--Dave
|
|
|
Powered by
FUDForum. Page generated in 0.04971 seconds