From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 111609 invoked by alias); 2 May 2016 14:27:59 -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 111574 invoked by uid 89); 2 May 2016 14:27:58 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=0.1 required=5.0 tests=BAYES_50,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 spammy=servers, JDK, sk:jdk7,un, kawa 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; Mon, 02 May 2016 14:27:48 +0000 Received: from [10.9.9.212] (helo=mailfront12.runbox.com) by bars.runbox.com with esmtp (Exim 4.71) (envelope-from ) id 1axEp5-0002Sp-PO; Mon, 02 May 2016 16:27:43 +0200 Received: from 76-9-89-131-rt-broadband-01.broadband.oakhurst.sti.net ([76.9.89.131] 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 1axEp0-0002xt-BX; Mon, 02 May 2016 16:27:38 +0200 Subject: Re: kawa lib and jdk version To: Damien MATTEI References: <5723663C.7020608@unice.fr> <5723836A.8000303@bothner.com> <201605021222.12586.Damien.Mattei@unice.fr> Cc: Kawa mailing list From: Per Bothner Message-ID: <572763D6.70209@bothner.com> Date: Mon, 02 May 2016 14:27: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: <201605021222.12586.Damien.Mattei@unice.fr> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2016-q2/txt/msg00018.txt.bz2 On 05/02/2016 03:22 AM, Damien MATTEI wrote: > 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 That is why you have to compile Kawa with '-target 7', so that javac with generated classfile version 51. I just did a test - you actually also have to specify -source 7. The following works: $ JAVAC='javac -source 7 -target 7' ./configure --with-java-source=7 ...other-options... $ make all Then I was able run the resulting kawa.jar on java 7. 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. -- --Per Bothner per@bothner.com http://per.bothner.com/