lenya-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jann Forrer <jann.for...@id.uzh.ch>
Subject Re: ANTLR and Java 1.4
Date Tue, 13 May 2008 13:08:57 GMT
Andreas Hartmann wrote:
> Andreas Hartmann schrieb:
>> Hi Jann,
>>
>> Jann Forrer schrieb:
>>> Hi Andreas
>>>> Jann Forrer schrieb:
>>>>> Hi Andereas
>>>>>
>>>>> What about the
>>>>> /Users/nobby/apache/lenya/branches/branch_1_2_x_shibboleth/src.......
>>>>> references everywhere? Seems to be your local home directory ;-)
>>>> thanks for spotting! Now the Java files are generated during the build
>>>> process, so the paths should correspond to your local directory
>>>> structure.
>>>>
>>> Thanks for fixing it. It seems that the used antlr version needs java
>>> 1.5. It does not build with java 1.4.2.
>>
>> do you get this error message?
>>
>> java.lang.UnsupportedClassVersionError:
>> org/apache/tools/ant/antlr/ANTLR3 (Unsupported major.minor version 49.0)
> 

Yes

> Unfortunately the ANTLR3 task works only with Java 5, even if compiled
> for an earlier version. It uses the regex character class
> \p{javaWhitespace} which is only available since Java 5.
> 
> If requiring Java 5 is not an option, we have to include the
> pre-generated lexer and parser Java files. The absolute paths you
> mentioned shouldn't do any harm, since they only occur in comments and
> in a method that is never called. Of course it would nevertheless be
> nice to get rid of them.
> 
Java 1.5 is ok for me. However on one of our server we still use 1.4.2.
Could we simply copy the compiled lexer and parser classes to this server?

Jann




---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org


Mime
View raw message