Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jxzNd-00044i-Ta for pljava-dev@arkaria.postgresql.org; Tue, 21 Jul 2020 21:00:53 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jxzNa-0000pZ-TG for pljava-dev@arkaria.postgresql.org; Tue, 21 Jul 2020 21:00:50 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jxzNa-0000pS-MS for pljava-dev@lists.postgresql.org; Tue, 21 Jul 2020 21:00:50 +0000 Received: from mail-ej1-x631.google.com ([2a00:1450:4864:20::631]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1jxzNX-0003Px-FN for pljava-dev@lists.postgresql.org; Tue, 21 Jul 2020 21:00:50 +0000 Received: by mail-ej1-x631.google.com with SMTP id a21so23003227ejj.10 for ; Tue, 21 Jul 2020 14:00:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=uKSsuSa0tjLwYWh6sm7HKSaKwRLtMicQDONE+8hhkaU=; b=j4hCPUareXUPvG4Wk18eJEs4Uxy29FkYzzwJFAsYLg1rO/u6uUNolcJOuWcufXg/aj GWkKxKnKck+F5quhF3NJpNdolfxOUOQhuCUw6BZ0/rDcnyc/JaKd5K0qqN1DcSFJhxWf bcSbJtY++d6uNA5czb2y3LghDiU0FPMvHHxH0bjNbja/gzCZ87NbdrkylZud/YvryFCw O8jqG4HUl2stIynR+wUk2V58O8Fsr2LikdZoqqT/1xx7vLz0fIMpN1DySgD4WiEcsfAg HsL+B0taMFORLv/oqjWxiUgsc/dndmO73sFLdnfhFHwHuUM5hPpFotoD6wKFCm/W2b3S lfDw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=uKSsuSa0tjLwYWh6sm7HKSaKwRLtMicQDONE+8hhkaU=; b=jsUt8q4t7BBXKauXs3T413lQwTN2ZYKX/FAUlFc2NHOq/2nEp18lREhq91wZ23dA0p UoQt3w6UEO8wPj5fwmM8hkjOl/tEAmFj2Lmt1ls2AdAdH09CzV0qcU8HONQyFfcO8xZl FsOjhmrAcEYACUnFRXValmh+bSyuJ5WZh7nCRUmhV94ZJ+4X1nf/uryVa7la6XzGy+Ac Mfp//Q8Jip1iI/t7Vaj7GsdfcjT3gecSSs/1G6dBq+QyqmSaWcvbkwNuVTq+V8QSP2V2 4GuKl51+K3PdDzGKGvnGb3nfu/f+9AbNdbQGHlnJQAs+UmxdOvW+vIA2K7Ashl3d8knh E3Mg== X-Gm-Message-State: AOAM533FCyJs4lNZc9PxuWPpK+8okcPAjZOe3U97X78McacjozUC5CoE oa/rNJXkoIkOYaJFq+4Zv8b0i/tDx2MIZ23c3pM= X-Google-Smtp-Source: ABdhPJxgdd8tAU0gL6xG6qtiY6sfM6co7CMOIM/thEGLqrwBX6VZiCmtKF11aRYYymQIRIbEGErHg3AfEtG8cgazgaQ= X-Received: by 2002:a17:906:2296:: with SMTP id p22mr26395111eja.510.1595365246062; Tue, 21 Jul 2020 14:00:46 -0700 (PDT) MIME-Version: 1.0 References: <5F12FF49.6090906@anastigmatix.net> <5F12FF80.5020208@anastigmatix.net> <5F1338F8.6030506@anastigmatix.net> <5F135B84.8070302@anastigmatix.net> <5F14C34E.4020704@anastigmatix.net> <5F14E15A.4040202@anastigmatix.net> <5F1664C5.2070700@anastigmatix.net> <5F1735ED.6020707@anastigmatix.net> <5F1753C9.4060500@anastigmatix.net> In-Reply-To: <5F1753C9.4060500@anastigmatix.net> From: Kartik Ohri Date: Wed, 22 Jul 2020 02:30:34 +0530 Message-ID: Subject: Re: PL/Java new build plugin To: Chapman Flack Cc: pljava-dev@lists.postgresql.org Content-Type: multipart/alternative; boundary="000000000000c755a805aaf9eaac" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --000000000000c755a805aaf9eaac Content-Type: text/plain; charset="UTF-8" On Wed, Jul 22, 2020 at 2:15 AM Chapman Flack wrote: > On 07/21/20 16:28, Kartik Ohri wrote: > > I tested with Java 15 and it works. But surprisingly, it still finds > > Nashorn and does not find Graal at all. Here is the build log, > > https://travis-ci.com/github/amCap1712/pljava/jobs/363479322 and the > branch > > I tested with https://github.com/amCap1712/pljava/tree/test-graal. > > While I see in that log that an 'apt remove openjdk-11-jdk' happened, > and also an installation of 15-ea, it looks like openjdk-14 was also > present and is probably what mvn was using. > > I usually don't bother removing jdk versions; I have several installed > at one time, and just use, e.g., > > JAVA_HOME=/var/tmp/jdk-15/ mvn clean install > > I had set JAVA_HOME and ran javac -version which pointed that Java 15 was being used but I tested again to be sure.I specified the Java Home in the mvn statement and ran with debug flags to see which version was running. You can see around line 473 here https://travis-ci.com/github/amCap1712/pljava/jobs/363479322. The result is the same: the script engine finds nashorn but not graal. > which is enough to determine which installed Java is used to run Maven. > > Regards, > -Chap > --000000000000c755a805aaf9eaac Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Wed, Jul 22, 2020 at 2:15 AM Chapman F= lack <chap@anastigmatix.net= > wrote:
On 07/21/20 16:28, Kartik Ohri wrote:
> I tested with Java 15 and it works. But surprisingly, it still finds > Nashorn and does not find Graal at all. Here is the build log,
> https://travis-ci.com/github/amCap1= 712/pljava/jobs/363479322 and the branch
> I tested with https://github.com/amCap1712/p= ljava/tree/test-graal.

While I see in that log that an 'apt remove openjdk-11-jdk' happene= d,
and also an installation of 15-ea, it looks like openjdk-14 was also
present and is probably what mvn was using.

I usually don't bother removing jdk versions; I have several installed<= br> at one time, and just use, e.g.,

JAVA_HOME=3D/var/tmp/jdk-15/=C2=A0 mvn clean install

I had set JAVA_HOME and ran javac -version which poin= ted that Java 15 was being used but I tested again to be sure.I specified t= he Java Home in the mvn statement and ran with debug flags to see which ver= sion was running. You can see around line 473 here=C2=A0https://travis-ci.com= /github/amCap1712/pljava/jobs/363479322. The result is the same: the sc= ript engine finds nashorn but not graal.=C2=A0
which is enough to determine which installed Java is used to run Maven.

Regards,
-Chap
--000000000000c755a805aaf9eaac--