2
votes

New install of Eclipse Mars.1, install codename one from market place, new install of Java 1.8 running on OSX 10.9.4.

Eclipse and the project itself are set to use Java 1.8 for all compilations, I also changed the settings in the build.xml to set 1.8 as the version to use.

When I try to add a gui builder page by right clicking on the project title and selecting "New/Other" and selecting Gui Builder, then next & finish I get the error.... '<>' operator is not allowed for source level below 1.7.

Searched Google for the error and nothing related to Codename one.

Any help would be greatly appreciated.

2
are you able to open the new project setting? (right click->CodenameOne->CodenameOne Settings) - Chen

2 Answers

1
votes

Open build.xml and do find and replace to replace all 1.7 with 1.8.

Open project properties (You will find it under File), and switch to Sources tab, make sure that Source/Binary Format is set to JDK 8.

Switch to CodenameOne tab and select Build Hints, now add java.version key and give it a value of 8, if it's not already added.

1
votes

The latest plugin v 1.0.0.201606211322 resolves this issue