pg.ddx.io  pgsql-pkg-debian@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Chapman Flack <chap@anastigmatix.net>
To: Christoph Berg <myon@debian.org>
To: pgsql-pkg-debian@postgresql.org
To: pgsql-pkg-yum@postgresql.org
Subject: Re: PL/Java 1.5.1_BETA2
Date: Sat, 15 Sep 2018 17:03:30 -0400
Message-ID: <5B9D73A2.2090402@anastigmatix.net> (raw)
In-Reply-To: <20180915203221.GA19015@msg.df7cb.de>
References: <5B96B226.2080803@anastigmatix.net>
	<20180915203221.GA19015@msg.df7cb.de>

On 09/15/18 16:32, Christoph Berg wrote:
> Fatal Error: Unable to find package java.lang in classpath or bootclasspath
> ...
> openjdk-10-jdk is installed. Any idea what is missing?

With Java 9, a completely new modular structure was brought to the JDK,
with deep implications for build procedures. I will have to rework the
build process heavily for a future PL/Java release, but for 1.5.1, I
have not.

So, it needs a Java 8 JDK (or 7, or 6, but let's just say 8) to build.

Once built, it will _run_ on later Java runtimes (and users can write
PL/Java functions using the latest language features, compile them with
later JDKs, and run them in PL/Java, as long as it is running on a new-
enough runtime).

The Java runtime that actually gets used, at runtime, is determined by
the pljava.libjvm_location variable, which can be given a default at
build time with -Dpljava.libjvmdefault=....

So if you are packaging for a platform where you know Java 10 will be
the default, and you know what the conventional path to its libjvm.so will
be, then by all means, use -Dpljava.libjvmdefault= to build in that
default for use at runtime. But the build, for now, must be done with 8.

There is a new(-ish?) page in the documentation with information intended
for packagers:

http://tada.github.io/pljava/build/package.html

-Chap




view thread (17+ messages)  latest in thread

Message-ID: <5B9D73A2.2090402@anastigmatix.net>
Permalink:  ../5B9D73A2.2090402@anastigmatix.net/
Also on:    postgresql.org/message-id/5B9D73A2.2090402@anastigmatix.net

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-pkg-debian@postgresql.org
  Cc: chap@anastigmatix.net, myon@debian.org, pgsql-pkg-yum@postgresql.org
  Subject: Re: PL/Java 1.5.1_BETA2
  In-Reply-To: <5B9D73A2.2090402@anastigmatix.net>
  References: <5B96B226.2080803@anastigmatix.net> <20180915203221.GA19015@msg.df7cb.de> <5B9D73A2.2090402@anastigmatix.net>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox