dan
dan

Reputation: 2957

How to fix validate plug-ins Missing Constraint: errors when moving from Eclipse Mars2 to Neon and changing target framework back to 1.7

Windows 7 x64 jdk 1.7 and 1.8 installed eclipse neon and eclipse mars

I have an existing project that runs fine in mars and am trying to import it into neon. The existing project needs to run on jre 1.7

What I have done so far

I have changed the the execution environment in the run configuration to 1.7 I have changed the java compiler and targeted runtimes to 1.7 and installed jre is set to 1.7

The problem

In Mars in the Run Configuration/Plugins tab I click deselect all then re-select my plugin and then click Add Required plug-ins. Then I verify that everything is ok by clicking Validate Plugins which returns no problems where detected

In Neon with everything set to 1.7 as outlined above I get a bunch of problems Missing Constraint: Bundle-RequiredExecutionEnvironment: JavaSE1.8 and Missing Constraint: Require-Capability: osgi.ee filter="(&(osgi.ee=JasvaSE)(Version=1.8))"

I would think that since I set everything to use the 1.7 framework then it should work just as it does when using Mars

Upvotes: 0

Views: 1627

Answers (1)

greg-449
greg-449

Reputation: 111216

Many Eclipse Neon plugins now require Java 8 and you will not be able to run them using Java 7.

If you really need to build something to run with Java 7 you will have to set up a target platform containing Eclipse Mars.

Upvotes: 1

Related Questions