Gianvito Rossi wrote:
Hi all,


Hi there!

I'm trying to compile OpenOffice.org release 2.0.1 with java 5.0 (jdk1.5.0_06)

I got the following errors:

*******************************************************************************************
init:
Created dir: /opt/appoggio/OOA680_m1/xmerge/unxlngi6.pro/class/xmerge

compile:
Compiling 96 source files to /opt/appoggio/OOA680_m1/xmerge/unxlngi6.pro/class/xmerge /opt/appoggio/OOA680_m1/xmerge/source/xmerge/java/org/openoffice/xmerge/ConvertData.java:130: as of release 1.5, 'enum' is a keyword, and may not be used as an identifier
(try -source 1.4 or lower to use 'enum' as an identifier)
       Enumeration enum = v.elements();
                   ^
[... snip ...]

any suggestion??



Well that xmerge source code is just currently not compatible with java 5.0.

You have 3 possible solutions:

1.) Go ahead and fix the incompatiblity by replacing every mentioned occurance of 'enum' as a variable name eg. with 'en' as the new variable name.

2.) Compile with java 5.0 but compile as 1.4 source code and for 1.4 target. To accomplish this you must use corresponding target and source attributes for every <javac> tag in every build.xml inside xmerge.

3.) Simply compile with jdk1.4 instead of jdk1.5


The first one is probably the best and the third the quickest solution.

thanks

Gianvito Rossi


Kind regards,
Bernd

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to