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:
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:
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
Preferences > Java > Installed JREs > Excution Environments
Preferences > Java > Compiler: JDK Compliance Compiler compliance level
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:
I have tried different settings. None of them works.
What is wrong?
Is it a known issue?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…