You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@uima.apache.org by Marshall Schor <ms...@schor.com> on 2011/01/21 23:17:38 UTC

RDFCASConsumer and Java 5

UIMA components are spec'd to require Java 5.  However, the RDFCASConsumer
project depends on classes from the clerezza project (here's one:
org/apache/clerezza/rdf/core/MGraph.class) which are compiled with Java 6.

Because of this, when building RDFCASConsumer, I get a compile failure:

[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 14.704s
[INFO] Finished at: Fri Jan 21 17:11:31 EST 2011
[INFO] Final Memory: 10M/18M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-compiler-plugin:2.3.1:compile (default-compile)
on project RDFCASConsumer: Compilation failure
[ERROR]
\mavenAlign\sandbox-trunk-data\RDFCASConsumer\src\main\java\org\apache\uima\rdf\RDFCASConsumer.java:[21,-1]
cannot access org.apache.clerezza.rdf.core.MGraph
[ERROR] bad class file: C:\Documents and
Settings\Administrator\.m2\repository\org\apache\clerezza\org.apache.clerezza.rdf.core\0.12-incubating-SNAPSHOT\org.apache.clerezza.rdf.core-0.12-incubating-SNAPSHOT.jar(org/apache/clerezza/rdf/core/MGraph.class)
[ERROR] class file has wrong version 50.0, should be 49.0

How should we fix this?  Does Clezerra really require Java 6? Can we depend on
something else?

-Marshall

Re: RDFCASConsumer and Java 5

Posted by Marshall Schor <ms...@schor.com>.

On 1/22/2011 10:02 AM, Tommaso Teofili wrote:
> Hi again,
> I successfully built Clerezza with Java 5 and made RDFCASConsumer run with
> the 5-versioned Clerezza dependencies.
> I am wondering if It may be worth having bundled Java 5 jars inside a lib
> directory (system scoped dependency) to avoid having to run such a custom
> build.

I don't think we can distribute Java 5 jars.  (They're not Apache licensed :-) ).

> Otherwise I think we should switch to directly use Jena, drop Clerezza and
> do some coding.
> Cheers,
> Tommaso
>
> 2011/1/22 Tommaso Teofili <to...@gmail.com>
>
>> Thanks Marshall, for notifying this, I missed that.
>> The possible solutions are: build Clerezza with Java 5 (no code change) or
>> use directly Jena which should be Java 5 compatible from 0.8.2 onwards (need
>> some basic code improvement).
>> I'm going to test the first option now and let you know soon.
>> Cheers,
>> Tommaso
>>
>> 2011/1/21 Marshall Schor <ms...@schor.com>
>>
>>  UIMA components are spec'd to require Java 5.  However, the RDFCASConsumer
>>> project depends on classes from the clerezza project (here's one:
>>> org/apache/clerezza/rdf/core/MGraph.class) which are compiled with Java 6.
>>>
>>> Because of this, when building RDFCASConsumer, I get a compile failure:
>>>
>>> [INFO] BUILD FAILURE
>>> [INFO]
>>> ------------------------------------------------------------------------
>>> [INFO] Total time: 14.704s
>>> [INFO] Finished at: Fri Jan 21 17:11:31 EST 2011
>>> [INFO] Final Memory: 10M/18M
>>> [INFO]
>>> ------------------------------------------------------------------------
>>> [ERROR] Failed to execute goal
>>> org.apache.maven.plugins:maven-compiler-plugin:2.3.1:compile
>>> (default-compile)
>>> on project RDFCASConsumer: Compilation failure
>>> [ERROR]
>>>
>>> \mavenAlign\sandbox-trunk-data\RDFCASConsumer\src\main\java\org\apache\uima\rdf\RDFCASConsumer.java:[21,-1]
>>> cannot access org.apache.clerezza.rdf.core.MGraph
>>> [ERROR] bad class file: C:\Documents and
>>>
>>> Settings\Administrator\.m2\repository\org\apache\clerezza\org.apache.clerezza.rdf.core\0.12-incubating-SNAPSHOT\org.apache.clerezza.rdf.core-0.12-incubating-SNAPSHOT.jar(org/apache/clerezza/rdf/core/MGraph.class)
>>> [ERROR] class file has wrong version 50.0, should be 49.0
>>>
>>> How should we fix this?  Does Clezerra really require Java 6? Can we
>>> depend on
>>> something else?
>>>
>>> -Marshall
>>>
>>

Re: RDFCASConsumer and Java 5

Posted by Tommaso Teofili <to...@gmail.com>.
Hi again,
I successfully built Clerezza with Java 5 and made RDFCASConsumer run with
the 5-versioned Clerezza dependencies.
I am wondering if It may be worth having bundled Java 5 jars inside a lib
directory (system scoped dependency) to avoid having to run such a custom
build.
Otherwise I think we should switch to directly use Jena, drop Clerezza and
do some coding.
Cheers,
Tommaso

2011/1/22 Tommaso Teofili <to...@gmail.com>

> Thanks Marshall, for notifying this, I missed that.
> The possible solutions are: build Clerezza with Java 5 (no code change) or
> use directly Jena which should be Java 5 compatible from 0.8.2 onwards (need
> some basic code improvement).
> I'm going to test the first option now and let you know soon.
> Cheers,
> Tommaso
>
> 2011/1/21 Marshall Schor <ms...@schor.com>
>
>  UIMA components are spec'd to require Java 5.  However, the RDFCASConsumer
>> project depends on classes from the clerezza project (here's one:
>> org/apache/clerezza/rdf/core/MGraph.class) which are compiled with Java 6.
>>
>> Because of this, when building RDFCASConsumer, I get a compile failure:
>>
>> [INFO] BUILD FAILURE
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] Total time: 14.704s
>> [INFO] Finished at: Fri Jan 21 17:11:31 EST 2011
>> [INFO] Final Memory: 10M/18M
>> [INFO]
>> ------------------------------------------------------------------------
>> [ERROR] Failed to execute goal
>> org.apache.maven.plugins:maven-compiler-plugin:2.3.1:compile
>> (default-compile)
>> on project RDFCASConsumer: Compilation failure
>> [ERROR]
>>
>> \mavenAlign\sandbox-trunk-data\RDFCASConsumer\src\main\java\org\apache\uima\rdf\RDFCASConsumer.java:[21,-1]
>> cannot access org.apache.clerezza.rdf.core.MGraph
>> [ERROR] bad class file: C:\Documents and
>>
>> Settings\Administrator\.m2\repository\org\apache\clerezza\org.apache.clerezza.rdf.core\0.12-incubating-SNAPSHOT\org.apache.clerezza.rdf.core-0.12-incubating-SNAPSHOT.jar(org/apache/clerezza/rdf/core/MGraph.class)
>> [ERROR] class file has wrong version 50.0, should be 49.0
>>
>> How should we fix this?  Does Clezerra really require Java 6? Can we
>> depend on
>> something else?
>>
>> -Marshall
>>
>
>

Re: RDFCASConsumer and Java 5

Posted by Tommaso Teofili <to...@gmail.com>.
Thanks Marshall, for notifying this, I missed that.
The possible solutions are: build Clerezza with Java 5 (no code change) or
use directly Jena which should be Java 5 compatible from 0.8.2 onwards (need
some basic code improvement).
I'm going to test the first option now and let you know soon.
Cheers,
Tommaso

2011/1/21 Marshall Schor <ms...@schor.com>

> UIMA components are spec'd to require Java 5.  However, the RDFCASConsumer
> project depends on classes from the clerezza project (here's one:
> org/apache/clerezza/rdf/core/MGraph.class) which are compiled with Java 6.
>
> Because of this, when building RDFCASConsumer, I get a compile failure:
>
> [INFO] BUILD FAILURE
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 14.704s
> [INFO] Finished at: Fri Jan 21 17:11:31 EST 2011
> [INFO] Final Memory: 10M/18M
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-compiler-plugin:2.3.1:compile
> (default-compile)
> on project RDFCASConsumer: Compilation failure
> [ERROR]
>
> \mavenAlign\sandbox-trunk-data\RDFCASConsumer\src\main\java\org\apache\uima\rdf\RDFCASConsumer.java:[21,-1]
> cannot access org.apache.clerezza.rdf.core.MGraph
> [ERROR] bad class file: C:\Documents and
>
> Settings\Administrator\.m2\repository\org\apache\clerezza\org.apache.clerezza.rdf.core\0.12-incubating-SNAPSHOT\org.apache.clerezza.rdf.core-0.12-incubating-SNAPSHOT.jar(org/apache/clerezza/rdf/core/MGraph.class)
> [ERROR] class file has wrong version 50.0, should be 49.0
>
> How should we fix this?  Does Clezerra really require Java 6? Can we depend
> on
> something else?
>
> -Marshall
>