From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 101557 invoked by alias); 2 May 2016 10:22:27 -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 101540 invoked by uid 89); 2 May 2016 10:22:26 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=3.0 required=5.0 tests=AWL,BAYES_00,FOREIGN_BODY1,KAM_LAZY_DOMAIN_SECURITY autolearn=no version=3.3.2 spammy=avez, servers, D*eu, H*Ad:U*kawa 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; Mon, 02 May 2016 10:22:16 +0000 Received: from [192.168.109.88] (natoca100-13.unice.fr [134.59.100.13]) by smtps-n.oca.eu (Postfix) with ESMTPSA id B795B80125; Mon, 2 May 2016 12:22:12 +0200 (CEST) From: Damien MATTEI To: Per Bothner Subject: Re: kawa lib and jdk version Date: Mon, 02 May 2016 10:22:00 -0000 User-Agent: KMail/1.9.6 Cc: Kawa mailing list References: <5723663C.7020608@unice.fr> <5723836A.8000303@bothner.com> In-Reply-To: <5723836A.8000303@bothner.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <201605021222.12586.Damien.Mattei@unice.fr> X-IsSubscribed: yes X-SW-Source: 2016-q2/txt/msg00017.txt.bz2 Le Friday 29 April 2016 17:53:14 Per Bothner, vous avez =C3=A9crit=C2=A0: > On 04/29/2016 06:48 AM, Damien Mattei wrote: >=20 > > i'm want to run kawa on debian server using tomcat and jdk7 , if i get > > the binary distribution of kawa for now i have compatibility with jdk7 > > and above, but what happens if i had get the source distribution of kawa > > and compile it on the development platform with jdk8 , will it be > > compatible with jdk7 and the tomcat server under debian if i > > deploy an application packaged with the kawa-2.1.jar compiled with jd= k8? >=20 > There are two parts to this issue: > (1) Make sure Kawa doesn't depend on any optional Java 8 features. > That shouldn't be a problem if you use configure+make (since in that case > you would have to explicitly request Java 8 features), but it's a bit tri= ckier > if you build with Ant (because of the auto-configuration in Kawa's build.= xml). >=20 > (2) Make sure you build the class files for the correct version of the JV= M. > That means you need to pass -target 7 to the javac command. The following > is believed to work: > export JAVAC=3D'javac -target 7' > configure --with-java-source=3D7 > make >=20 > The --with-java-source=3D7 is probably not needed, but it's a good idea = to > specify it. (One reason is the Kawa default might change.) >=20 > You might have to experiment a bit, and you might run into a Kawa bug. > (If so, let me know.) thanks , i had made few attemps to work with jdk7,unfortunately it complains about 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 regards, damien --=20 Damien.Mattei@unice.fr, Damien.Mattei@oca.eu, UNS / OCA / CNRS