This is the mail archive of the kawa@sourceware.org mailing list for the Kawa project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: kawa build from source fails - revision 8603




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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]