This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: Eclipse compilation problem
- From: Hanno Meyer-Thurow <h dot mth at web dot de>
- To: "VladimÃr LapÃÄek" <vladimir dot lapacek at gmail dot com>
- Cc: java at gcc dot gnu dot org
- Date: Sat, 17 Feb 2007 11:08:49 +0100
- Subject: Re: Eclipse compilation problem
- References: <297ab8cc0702162101x763004fbie9fa690a90325f2f@mail.gmail.com>
On Sat, 17 Feb 2007 00:01:02 -0500
"VladimÃr LapÃÄek" <vladimir.lapacek@gmail.com> wrote:
> Hi,
Hi Vladimir,
> I tried to compile the Eclipse package in Ubuntu using "gcj with
> generics" and got the following error:
That is a common jdk-1.5 issue. There is a workaround to this. Just set
the javac source and target flags to 1.5 to compile. I do it like this:
74 # no warnings / java5
75 find <SRCDIR> -type f -name '*.xml' -exec \
76 sed -r \
77 -e "s/(\"compilerArg\" value=\")/\1-nowarn /g" \
78 -e "s/(-encoding ISO-8859-1)/\1 -nowarn/g" \
79 -e "s:(<property name=\"javacSource\" value=)\".*\":\1\"1.5\":" \
80 -e "s:(<property name=\"javacTarget\" value=)\".*\":\1\"1.5\":" \
81 -i {} \;
Regards,
Hanno