eclipse-archived / smarthome

Eclipse SmartHome™ project
https://www.eclipse.org/smarthome/
Eclipse Public License 2.0
862 stars 783 forks source link

Running ESH on compact2 profile runtime in Eclipse IDE #5644

Open falmanna opened 6 years ago

falmanna commented 6 years ago

Hello, I am trying to set up a test environment using Eclipse IDE for running the ESH framework on Java compact2. I created a Java compact2 Runtime and set it as the runtime environment in the launch script. But I am getting Missing Constraint: Bundle-RequiredExecutionEnviroment: JavaSE-1.8 and sometimes 1.6 on most bundles. This is because of the MANIFEST.MF of these bundles have Bundle-RequiredExecutionEnvironment: JavaSE-1.8

Any idea what is wrong here? from the guidelines (C.1) bundles should work with compact2. Am I setting up the environment not the right way? or Eclipse doesn't compact profiles yet?

maggu2810 commented 6 years ago

I assume we have to change from Bundle-RequiredExecutionEnviroment to Require-Capability similar as has been done here: https://bugs.eclipse.org/bugs/show_bug.cgi?id=432027 But IIRC 4.2 still relies on Bundle-RequiredExecutionEnviroment instead of Require-Capability (someone have to check the spec).

falmanna commented 6 years ago

@maggu2810 Exactly, and I still didn't manage to have it running. I think I will need to find another way to test ESH with compact2 runtime on my machine.