This is the mail archive of the
kawa@sourceware.org
mailing list for the Kawa project.
Re: kawa build from source fails - revision 8603
- From: Per Bothner <per at bothner dot com>
- To: David Pirotte <david at altosw dot be>
- Cc: kawa at sourceware dot org
- Date: Mon, 21 Sep 2015 08:54:45 -0700
- Subject: Re: kawa build from source fails - revision 8603
- Authentication-results: sourceware.org; auth=none
- References: <20150921015935 dot 4c2a05c2 at capac> <55FF9AD6 dot 2070206 at bothner dot com> <20150921121330 dot 0f21023b at capac>
On 09/21/2015 08:13 AM, David Pirotte wrote:
Looks like you're not neither OpenJDK or Java SE, but some other Java
implementation. Is that correct? Looks like Eclipse-style error message, IIRC.
Either that, or or you're using Java 5.
If so you may need to --with-java-source=5 as an extra configure flag.
However, I haven't tested that in a while.
david@capac:/usr/local/src/kawa/svn 19 $ java -version
java version "1.7.0_75"
OpenJDK Runtime Environment (IcedTea 2.5.4) (7u75-2.5.4-2)
OpenJDK 64-Bit Server VM (build 24.75-b04, mixed mode)
Strange. I tried all of:
openjdk version "1.8.0_60"
OpenJDK Runtime Environment (build 1.8.0_60-b27)
OpenJDK 64-Bit Server VM (build 25.60-b23, mixed mode)
and
java version "1.7.0_71"
Java(TM) SE Runtime Environment (build 1.7.0_71-b14)
Java HotSpot(TM) 64-Bit Server VM (build 24.71-b01, mixed mode)
and
java version "1.6.0_37"
Java(TM) SE Runtime Environment (build 1.6.0_37-b06)
Java HotSpot(TM) 64-Bit Server VM (build 20.12-b01, mixed mode)
They all compile the 'import javax.lang.model.element.*;'
without problem.
I don't have OpenJDK 1.7 (just Java SE 1.7) to try with,
but I wouldn't expect it to be missing javax.lang.model.element.
OTOH I vaguely remember there were some problems with OpenJDK 7.
I generally run Fedora, and in the past there were some problems when
using /usr/bin/javac, so I mostly used Java SE. However, on Fedora 22
we have OpenJDK 1.8, which works much better. (There are still
some test-suite discrepancies I haven't tracked down.)
So I suggest switching to one of OpenJDK 8, Java SE 7, or Java SE 8.
--
--Per Bothner
per@bothner.com http://per.bothner.com/