From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28858 invoked by alias); 3 May 2016 09:30:43 -0000 Mailing-List: contact kawa-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: kawa-owner@sourceware.org Received: (qmail 1141 invoked by uid 89); 3 May 2016 09:30:37 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: Yes, score=5.4 required=5.0 tests=AWL,BAYES_50,FOREIGN_BODY1,KAM_LAZY_DOMAIN_SECURITY autolearn=no version=3.3.2 spammy=avez, D*eu, H*Ad:U*kawa, vous X-HELO: smtps-n.oca.eu Received: from smtps-n.oca.eu (HELO smtps-n.oca.eu) (192.54.174.167) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 03 May 2016 09:30:27 +0000 Received: from [192.168.109.88] (natoca100-13.unice.fr [134.59.100.13]) by smtps-n.oca.eu (Postfix) with ESMTPSA id D0CEF80125; Tue, 3 May 2016 11:30:24 +0200 (CEST) From: Damien MATTEI To: Per Bothner Subject: Re: kawa lib and jdk version Date: Tue, 03 May 2016 09:30:00 -0000 User-Agent: KMail/1.9.6 Cc: Kawa mailing list References: <5723663C.7020608@unice.fr> <201605021222.12586.Damien.Mattei@unice.fr> <572763D6.70209@bothner.com> In-Reply-To: <572763D6.70209@bothner.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <201605031130.24507.Damien.Mattei@unice.fr> X-IsSubscribed: yes X-SW-Source: 2016-q2/txt/msg00019.txt.bz2 hi Per, the sys admin has upgraded the debian server to jdk8 to match my developmen= t platform so there 's no needs to use jdk7 more thanks for your help, regards=20 Damien Le Monday 02 May 2016 16:27:34 Per Bothner, vous avez =C3=A9crit=C2=A0: >=20 > On 05/02/2016 03:22 AM, Damien MATTEI wrote: >=20 > > i had made few attemps to work with jdk7,unfortunately it complains abo= ut a major version of 51 (my platform) instead of 52 (kawa) > > so i will use jdk8 where all is ok ,it's just that where i work servers= are under jdk7 but i hope it will be upgraded soon >=20 > That is why you have to compile Kawa with '-target 7', so that javac with= generated classfile version 51. >=20 > I just did a test - you actually also have to specify -source 7. The fol= lowing works: >=20 > $ JAVAC=3D'javac -source 7 -target 7' ./configure --with-java-source=3D7 = ...other-options... > $ make all >=20 > Then I was able run the resulting kawa.jar on java 7. >=20 > Of course this assuming you're using the JDK 1.8 to "cross-compile" Kawa = so > the result can be used on JDK 1.7. > If you're using JDK 1.7 to build Kawa, it should just work. --=20 Damien.Mattei@unice.fr, Damien.Mattei@oca.eu, UNS / OCA / CNRS