Eclipse Yoxos Services Downloads Blogs About
Home > Blogs >

on Nov 18th, 2009Compile errors… I should have set my EE

Lately I have been working on (and committing) a repository analyzer tool for p2.  It is meant to help you validate your repository against known problems and common mistakes (missing version numbers, two IUs with the same ID/Version, etc…).  After cleaning up the code I finally committed it.  Within a few minutes of committing it, Andrew starting pinging me to let me know I introduced a compile error. (Thanks Andrew).

The offending lines where here:

ee1 Compile errors... I should have set my EE

and more precisely:

ee2 Compile errors... I should have set my EE

You see, while this may seem fine to all you Java 1.6 developers out there, p2 is set to run on CDC-1.1/Foundation-1.1 and JSE-1.4.  I know in the Java SE space, 1.4 is long past end of life, but in the embedded space, it is still very common.  (Remember, these embedded devices require much smaller VMs, otherwise we complain that our small devices are two slow /sluggish / expensive, etc…) — and p2 is a provisioning platform that operates just fine on embedded devices.

With Eclipse, you can set your Execution Environment (EE) and point to a variety of JDKs.  This allows you to “single source” your code so the same code can run on a server with Java 1.6 installed and a small device with a Foundation VM.  However, I don’t have a Foundation VM icon sad Compile errors... I should have set my EE .

Lucky for us, an EE description for several JDKs is available in the Eclipse CVS repository:

ee3 Compile errors... I should have set my EE

Once you checkout the project, you can add this to your list of known JREs

ee4 Compile errors... I should have set my EE
Now I get all the Java tooling (content assist, compile errors, etc…) for the Foundation 1.1 VMs.

ee5 Compile errors... I should have set my EE

Share and Enjoy:

  • services sprite Compile errors... I should have set my EE
  • services sprite Compile errors... I should have set my EE
  • services sprite Compile errors... I should have set my EE
  • services sprite Compile errors... I should have set my EE
  • services sprite Compile errors... I should have set my EE
  • services sprite Compile errors... I should have set my EE
  • services sprite Compile errors... I should have set my EE
  • services sprite Compile errors... I should have set my EE
  • services sprite Compile errors... I should have set my EE
  • services sprite Compile errors... I should have set my EE

One Response to “Compile errors… I should have set my EE”

  1. Ian Bull says:

    Chris pointed out that you can also accomplish this with API tools:
    http://eclipsesource.com/blogs/2009/04/02/osgi-execution-environment-validation/

    Wim Jongman has some good information on this too:
    http://industrial-tsi-wim.blogspot.com/2009/10/eclipse-api-tools-execution.html

Leave a Reply

© EclipseSource 2008 - 2011