I have using Eclipse Luna win32.x86_64 runing with Java 8.
Here from the Help Menu > About > Installation Detail > Configuration Tab
:
java.runtime.version=1.8.0_05-b13
java.version=1.8.0_05
I have created new plug-in project, requesting JavaSE-1.8
as Execution Environment:
![Plug-in Editor. JavaSE-1.8 as Execution Environment](https://i.stack.imgur.com/WZhDv.png)
In the myplugin/META-INF/MANIFEST.MF
file I have of course:
Bundle-RequiredExecutionEnvironment: JavaSE-1.8
I use this plugin in a product file. When I try to validate it, I get following error:
![Validations Dialog, opened from the product file editor](https://i.stack.imgur.com/3VazW.png)
Of course if I start the product, I get:
!ENTRY org.eclipse.osgi 2 0 2014-07-10 08:14:22.042
!MESSAGE One or more bundles are not resolved because the following root constraints are not resolved:
!SUBENTRY 1 org.eclipse.osgi 2 0 2014-07-10 08:14:22.043
!MESSAGE Bundle update@********/myplugin/ was not resolved.
!SUBENTRY 2 myplugin 2 0 2014-07-10 08:14:22.044
!MESSAGE Missing required capability Require-Capability: osgi.ee; filter="(&(osgi.ee=JavaSE)(version=1.8))".
I have tried to verify a lot:
Preferences > Java > Installed JREs
![Installed JREs](https://i.stack.imgur.com/yuKX5.png)
Preferences > Java > Installed JREs > Excution Environments
![Excution Environments](https://i.stack.imgur.com/ndugv.png)
Preferences > Java > Compiler: JDK Compliance Compiler compliance level
![Compiler](https://i.stack.imgur.com/K5Vmn.png)
When I start the product, I checked in the Launching tab that I use the jre8 as execution environment.
I have even tried to change the Java Runtime Environment
in the Run Configurations
Dialog:
![Java Runtime Environment](https://i.stack.imgur.com/3OkrR.png)
I have tried different settings. None of them works.
What is wrong?
Is it a known issue?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…