Pages

Friday, November 30, 2012

Building eclipse source base and resolving its related issues

1. Download the eclipse source from CVS

You have to Checkout project from CVS Repository, refer to http://wiki.eclipse.org/CVS_Howto

ScreenShot2012-11-30at2.54.33PM-2012-11-30-14-53.png

Based on your workspace, you’ll have e4 directory that has many eclipse projects.

ScreenShot2012-11-30at3.00.13PM-2012-11-30-14-53.png

It’ll start building when you setup automatic build.

PastedGraphic1-2012-11-30-14-53.png

PastedGraphic-2012-11-30-14-53.png

2. Removing “API Baselines error”

After the automatic build, you may see a lot of “red !” and “red X” marks in some of the projects.

Refer to http://stackoverflow.com/questions/13650375/the-red-mark-after-the-build-in-eclipse. For your conveniences in debugging, you need to setup the filter. http://stackoverflow.com/a/13651021/260127

You’ll have “Adding API Baseline in eclipse” error.

http://stackoverflow.com/questions/13651144/adding-api-baseline-in-eclipse

You can remove all the errors by making “Missing API baseline” as warning.

PastedGraphic4-2012-11-30-14-53.png

3. Removing “Build path specifies execution environment J2SE-1.4” error

You may see “Build path specifies execution environment J2SE-1.4.” error in Mac OS X, it’s because some of the projects use JDK1.4, but the setup in the Mac is wrong.

http://stackoverflow.com/questions/13652032/build-path-specifies-execution-environment-j2se-1-4-error-in-eclipse

ScreenShot2012-11-30at1.35.53PM-2012-11-30-14-53.png

ScreenShot2012-11-30at2.32.59PM-2012-11-30-14-53.png

In eclipse Preference, you need to add Compatible JREs.

ScreenShot2012-11-30at12.46.32PM-2012-11-30-14-53.png

Check if you have Java SE correctly installed.

ScreenShot2012-11-30at1.39.46PM-2012-11-30-14-53.png

Then find all the projects with the “Build path specifies execution environment J2SE-1.4.” error.

PastedGraphic3-2012-11-30-14-53.png

Open the “Configure File Path”.

PastedGraphic2-2012-11-30-14-53.png

Replace the JRE System Library

ScreenShot2012-11-30at2.07.19PM-2012-11-30-14-53.png

with the one with you just setup.

ScreenShot2012-11-30at2.32.20PM-2012-11-30-14-53.png

Install Execution Environment Descriptor

http://stackoverflow.com/questions/13655635/installing-environment-descriptions-in-eclipse/13663453#13663453