Andrew Borthwick wrote:
> I'm just doing everything in Eclipse using subclipse 1.2.2.  I check
> out CasEditor by doing "File | Import |  Other -> Checkout projects
>> from SVN" in Eclipse.  I then pretty much take all the defaults,
> specifying it as a Java project.
> 
> When I do this I get the errors shown below.  I'm not sure if I'm too
> naive, here.  I'm   still moving up the Eclipse learning curve.
> 
> As per Thilo's question, I am using Java 1.5.0 and I'm afraid I just
> don't see where I set "enable annotations".
> 
> Too answer Joern's question, I don't see an explicit src folder when I
> check out the project in this way.  I get all the classes within src,
> starting with src.main.assembly,
> src.main.java.org.apache.uima.caseditor, etc.
> 
> Thanks,
> Andrew

Have you successfully built the core distribution and set it up in your
workspace?  I'm afraid you need to do all the Maven setup as described
here: http://incubator.apache.org/uima/svn.html

After you have done that, you can

1) Check out the CAS Editor using subclipse.  Use the option "Check out
as project in the workspace" on the "Checkout from SVN dialog".  This
will check out the project as a plain project.

2) I close Eclipse before I do the next step, but I think a refresh of
the project afterwards will also work.  On the command line, cd to the
CasEditor directory in your workspace.  Invoke maven magic:
> mvn eclipse:eclipse
This will read the CasEditor pom and build a correct .project and
.classpath for you.  This will take some time the first time you
do it, downloading god knows what.  Now refresh the project/reopen Eclipse.

The project should now build.  If you still get the errors you describe,
right-click on the project, and select properties.  Select "Java compiler".
Make sure the "compiler compliance level" is set to 5.0, and that the
"Use default compliance settings" checkbox is checked (or at least that
the class file and source compatibility are set to 5.0).  You don't need
to do anything about annotations, that was a red herring.

If it still doesn't build, please post here again ;-)

--Thilo

Reply via email to