Using other Java runtimes?

Friday, 16 April 2021 · 9 messages · last reply 21 Apr 2021
PV
Peter Villadsen16 Apr 2021 23:39 #
Guys, I was wondering what the options are for running BaseX on top of a runtime that is different from the Oracle one? I see Oracle is aggressively monetizing the Java runtime, but I know there are alternatives out there. Have any been tested with BaseX? Best Regards Peter Villadsen Principal Architect Microsoft Business Applications Group
LQ
Liam R. E. Quin17 Apr 2021 01:56 #
Quoted text · Peter Villadsen · 5 lines
On Fri, 2021-04-16 at 21:39 +0000, Peter Villadsen wrote: > Guys, > > I was wondering what the options are for running BaseX on top of a > runtime that is different from the Oracle one?
Using openjdk 11 here - http://openjdk.java.net/ - on Mageia Linux.also openjdk 1.8 on Centos 7.
-- Liam Quin, https://www.delightfulcomputing.com/ Available for XML/Document/Information Architecture/XSLT/ XSL/XQuery/Web/Text Processing/A11Y training, work & consulting. Barefoot Web-slave, antique illustrations: http://www.fromoldbooks.org
G
Graydonin reply to Peter Villadsen, 16 Apr 2021, 23:3917 Apr 2021 10:19 #
Quoted text · Peter Villadsen · 2 lines
On Fri, Apr 16, 2021 at 09:39:46PM +0000, Peter Villadsen scripsit: > I was wondering what the options are for running BaseX on top of a runtime that is different from the Oracle one? I see Oracle is aggressively monetizing the Java runtime, but I know there are alternatives out there. Have any been tested with BaseX?
I can't talk about _tested_, but I've been using BaseX on Fedora for a decade now, and it's been fine as Fedora shifted to OpenJDK pacakages to provide Java. Current happens to be openjdk 11.0.10 2021-01-19. I'm also not running any server anything; this is pretty strictly command line or gui with not that much data (at most single-digit GB) and not-that-complex queries, so this isn't a comprehensive thing, but for at least those purposes I can say BaseX works fine on the OpenJDK.
-- Graydon Saunders | graydonish at gmail.com Þæs oferéode, ðisses swá mæg. -- Deor ("That passed, so may this.")
JB
James Ball17 Apr 2021 17:31 #
Hello Peter, I’ve been running a system using Amazon’s Corretto 11 from their Docker image with good results. I did also play with using AWS Lambda to run BaseX but I’ve never put anything into production - I had success there with both the openjdk 1.8 and Corretto options. Regards, James
Quoted text · Graydon · 18 lines
> > From: Peter Villadsen <Peter.Villadsen at microsoft.com <mailto:Peter.Villadsen at microsoft.com>> > Subject: [basex-talk] Using other Java runtimes? > Date: 16 April 2021 at 22:39:46 BST > To: BaseX <basex-talk at mailman.uni-konstanz.de <mailto:basex-talk at mailman.uni-konstanz.de>> > > > Guys, > > I was wondering what the options are for running BaseX on top of a runtime that is different from the Oracle one? I see Oracle is aggressively monetizing the Java runtime, but I know there are alternatives out there. Have any been tested with BaseX? > > > Best Regards > > Peter Villadsen > Principal Architect > Microsoft Business Applications Group >
PV
Peter Villadsenin reply to Graydon, 17 Apr 2021, 10:1917 Apr 2021 20:15 #
I have installed OpenJDK on one machine so far, and it seems to work well on windows. Thanks to those who helped make these suggestions. Best Regards Peter Villadsen
Quoted text · Graydon · 13 lines
-----Original Message----- From: Graydon <graydonish at gmail.com> Sent: Friday, April 16, 2021 11:20 PM To: Peter Villadsen <Peter.Villadsen at microsoft.com> Cc: BaseX <basex-talk at mailman.uni-konstanz.de> Subject: [EXTERNAL] Re: [basex-talk] Using other Java runtimes? On Fri, Apr 16, 2021 at 09:39:46PM +0000, Peter Villadsen scripsit: > I was wondering what the options are for running BaseX on top of a runtime that is different from the Oracle one? I see Oracle is aggressively monetizing the Java runtime, but I know there are alternatives out there. Have any been tested with BaseX? I can't talk about _tested_, but I've been using BaseX on Fedora for a decade now, and it's been fine as Fedora shifted to OpenJDK pacakages to provide Java. Current happens to be openjdk 11.0.10 2021-01-19. I'm also not running any server anything; this is pretty strictly command line or gui with not that much data (at most single-digit GB) and not-that-complex queries, so this isn't a comprehensive thing, but for at least those purposes I can say BaseX works fine on the OpenJDK. -- Graydon Saunders | graydonish at gmail.com Þæs oferéode, ðisses swá mæg. -- Deor ("That passed, so may this.")
MS
Majewski, Steven Dennis (sdm7g)17 Apr 2021 21:00 #
I’ve been running BaseX webapp under Tomcat using either OpenJDK 8 or 11 on Mac. But I just checked, and the BaseX GUI and command line programs, which I installed using HomeBrew use the OpenJDK installed by HomeBrew, so it appears I’ve been running that variously under OpenJDK 8,11,12 and now 15. JAVA_HOME="/usr/local/opt/openjdk" exec "/usr/local/Cellar/basex/9.5.1/libexec/bin/basex" "$@“ /usr/local/opt/openjdk@ -> ../Cellar/openjdk/15.0.2 — Steve M.
Quoted text · Peter Villadsen · 25 lines
> On Apr 17, 2021, at 2:15 PM, Peter Villadsen <Peter.Villadsen at microsoft.com> wrote: > > I have installed OpenJDK on one machine so far, and it seems to work well on windows. Thanks to those who helped make these suggestions. > > Best Regards > > Peter Villadsen > > -----Original Message----- > From: Graydon <graydonish at gmail.com> > Sent: Friday, April 16, 2021 11:20 PM > To: Peter Villadsen <Peter.Villadsen at microsoft.com> > Cc: BaseX <basex-talk at mailman.uni-konstanz.de> > Subject: [EXTERNAL] Re: [basex-talk] Using other Java runtimes? > > On Fri, Apr 16, 2021 at 09:39:46PM +0000, Peter Villadsen scripsit: >> I was wondering what the options are for running BaseX on top of a runtime that is different from the Oracle one? I see Oracle is aggressively monetizing the Java runtime, but I know there are alternatives out there. Have any been tested with BaseX? > > I can't talk about _tested_, but I've been using BaseX on Fedora for a decade now, and it's been fine as Fedora shifted to OpenJDK pacakages to provide Java. Current happens to be openjdk 11.0.10 2021-01-19. > > I'm also not running any server anything; this is pretty strictly command line or gui with not that much data (at most single-digit GB) and not-that-complex queries, so this isn't a comprehensive thing, but for at least those purposes I can say BaseX works fine on the OpenJDK. > > -- > Graydon Saunders | graydonish at gmail.com Þæs oferéode, ðisses swá mæg. > -- Deor ("That passed, so may this.")
OS
Omar Siamin reply to Peter Villadsen, 16 Apr 2021, 23:3917 Apr 2021 22:28 #
Hi, I switched to https://www.azul.com/downloads/zulu-community/ for Windows and Mac shortly after Oracle announced their license change. On Linux I use the built in JDK. Tried Zulu Community on Linux as container for some legacy Java that had to be run or built with some of the older versions 8 and before. Never had any problems. It seems BaseX is a software that doesn't use anything only Oracle has in their distribution. I start to forget about Oracle as primary source of Java. Any OpenJDK is good these days I think. I hope that is what they intended to achieve. Best regards Omar
Quoted text · Peter Villadsen · 27 lines
Am 16.04.2021 um 23:39 schrieb Peter Villadsen: > > Guys, > > > > I was wondering what the options are for running BaseX on top of a > runtime that is different from the Oracle one? I see Oracle is > aggressively monetizing the Java runtime, but I know there are > alternatives out there. Have any been tested with BaseX? > > > > > > Best Regards > > > > Peter Villadsen > > Principal Architect > > Microsoft Business Applications Group > > >
IL
Imsieke, Gerrit, le-texin reply to Peter Villadsen, 17 Apr 2021, 20:1517 Apr 2021 23:55 #
Glad that it works so far. I have just one caveat for OpenJDK 11: If you supply an absolute Windows path with forward slashes (such as C:/foo/bar) as part of the classpath, Java will try to make it absolute wrt the current working directory, resulting in something like java.nio.file.InvalidPathException: Illegal char <:> at index 49: c:\cygwin\home\gerrit\myproject\c:\foo\bar At least this is what we experienced with an XProc pipeline (XML Calabash and Saxon 9.8) about a year ago, when a customer tried to run it on OpenJDK 11. The issue doesn’t occur with Java versions 7, 8, 9, 13, or 15 (others not tested). Therefore I recommend not to use Java 11 on Windows. Use a more recent version, at least 13, instead. Gerrit
Quoted text · Peter Villadsen · 25 lines
On 17.04.2021 20:15, Peter Villadsen wrote: > I have installed OpenJDK on one machine so far, and it seems to work well on windows. Thanks to those who helped make these suggestions. > > Best Regards > > Peter Villadsen > > -----Original Message----- > From: Graydon <graydonish at gmail.com> > Sent: Friday, April 16, 2021 11:20 PM > To: Peter Villadsen <Peter.Villadsen at microsoft.com> > Cc: BaseX <basex-talk at mailman.uni-konstanz.de> > Subject: [EXTERNAL] Re: [basex-talk] Using other Java runtimes? > > On Fri, Apr 16, 2021 at 09:39:46PM +0000, Peter Villadsen scripsit: >> I was wondering what the options are for running BaseX on top of a runtime that is different from the Oracle one? I see Oracle is aggressively monetizing the Java runtime, but I know there are alternatives out there. Have any been tested with BaseX? > > I can't talk about _tested_, but I've been using BaseX on Fedora for a decade now, and it's been fine as Fedora shifted to OpenJDK pacakages to provide Java. Current happens to be openjdk 11.0.10 2021-01-19. > > I'm also not running any server anything; this is pretty strictly command line or gui with not that much data (at most single-digit GB) and not-that-complex queries, so this isn't a comprehensive thing, but for at least those purposes I can say BaseX works fine on the OpenJDK. > > -- > Graydon Saunders | graydonish at gmail.com Þæs oferéode, ðisses swá mæg. > -- Deor ("That passed, so may this.") >
ES
Eric J. Schwarzenbachin reply to Omar Siam, 17 Apr 2021, 22:2821 Apr 2021 19:29 #
I've also used Zulu with BaseX (Java 14 and 16) successfully. Note that Zulu is a /distribution/ of OpenJDK much the way Ubuntu is distribution of Linux. I've also used Adopt OpenJDK on some machines and have never had any problems with either. If you are working in a corporate setting, you may find the fact that you can buy support for these distributions may help with red tape issues. Cheers, Eric
Quoted text · Omar Siam · 39 lines
On 4/17/21 4:28 PM, Omar Siam wrote: > > Hi, > > I switched to https://www.azul.com/downloads/zulu-community/ for > Windows and Mac shortly after Oracle announced their license change. > On Linux I use the built in JDK. Tried Zulu Community on Linux as > container for some legacy Java that had to be run or built with some > of the older versions 8 and before. > > Never had any problems. > > It seems BaseX is a software that doesn't use anything only Oracle has > in their distribution. > > I start to forget about Oracle as primary source of Java. Any OpenJDK > is good these days I think. I hope that is what they intended to achieve. > > Best regards > > Omar > > Am 16.04.2021 um 23:39 schrieb Peter Villadsen: >> >> Guys, >> >> I was wondering what the options are for running BaseX on top of a >> runtime that is different from the Oracle one? I see Oracle is >> aggressively monetizing the Java runtime, but I know there are >> alternatives out there. Have any been tested with BaseX? >> >> Best Regards >> >> Peter Villadsen >> >> Principal Architect >> >> Microsoft Business Applications Group >>

⚡Generated with XQuery