From: Per Bothner <per@bothner.com>
To: Damien MATTEI <Damien.Mattei@unice.fr>
Cc: Kawa mailing list <kawa@sourceware.org>
Subject: Re: kawa lib and jdk version
Date: Mon, 02 May 2016 14:27:00 -0000 [thread overview]
Message-ID: <572763D6.70209@bothner.com> (raw)
In-Reply-To: <201605021222.12586.Damien.Mattei@unice.fr>
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/
next prev parent reply other threads:[~2016-05-02 14:27 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-04-29 13:48 Damien Mattei
2016-04-29 15:53 ` Per Bothner
2016-05-02 10:22 ` Damien MATTEI
2016-05-02 14:27 ` Per Bothner [this message]
2016-05-03 9:30 ` Damien MATTEI
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=572763D6.70209@bothner.com \
--to=per@bothner.com \
--cc=Damien.Mattei@unice.fr \
--cc=kawa@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).