From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22446 invoked by alias); 29 Apr 2016 15:53:45 -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 22377 invoked by uid 89); 29 Apr 2016 15:53:45 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.5 required=5.0 tests=AWL,BAYES_50,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 spammy=UD:jar, kawa, Mattei, H*MI:sk:5723663 X-HELO: aibo.runbox.com Received: from aibo.runbox.com (HELO aibo.runbox.com) (91.220.196.211) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA encrypted) ESMTPS; Fri, 29 Apr 2016 15:53:33 +0000 Received: from [10.9.9.212] (helo=mailfront12.runbox.com) by bars.runbox.com with esmtp (Exim 4.71) (envelope-from ) id 1awAjQ-000529-SQ; Fri, 29 Apr 2016 17:53:28 +0200 Received: from 70-36-239-75.dsl.dynamic.fusionbroadband.com ([70.36.239.75] helo=toshie.bothner.com) by mailfront12.runbox.com with esmtpsa (uid:757155 ) (TLS1.2:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.82) id 1awAjF-0001oi-Gf; Fri, 29 Apr 2016 17:53:17 +0200 Subject: Re: kawa lib and jdk version To: Damien Mattei , Kawa mailing list References: <5723663C.7020608@unice.fr> From: Per Bothner Message-ID: <5723836A.8000303@bothner.com> Date: Fri, 29 Apr 2016 15:53:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.7.1 MIME-Version: 1.0 In-Reply-To: <5723663C.7020608@unice.fr> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2016-q2/txt/msg00016.txt.bz2 On 04/29/2016 06:48 AM, Damien Mattei wrote: > 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 jdk8? 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 trickier if you build with Ant (because of the auto-configuration in Kawa's build.xml). (2) Make sure you build the class files for the correct version of the JVM. That means you need to pass -target 7 to the javac command. The following is believed to work: export JAVAC='javac -target 7' configure --with-java-source=7 make The --with-java-source=7 is probably not needed, but it's a good idea to specify it. (One reason is the Kawa default might change.) You might have to experiment a bit, and you might run into a Kawa bug. (If so, let me know.) -- --Per Bothner per@bothner.com http://per.bothner.com/