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
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.
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.
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@gmail.com Sent: Friday, April 16, 2021 11:20 PM To: Peter Villadsen Peter.Villadsen@microsoft.com Cc: BaseX basex-talk@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@gmail.com Þæs oferéode, ðisses swá mæg. -- Deor ("That passed, so may this.")
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.
On Apr 17, 2021, at 2:15 PM, Peter Villadsen Peter.Villadsen@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@gmail.com Sent: Friday, April 16, 2021 11:20 PM To: Peter Villadsen Peter.Villadsen@microsoft.com Cc: BaseX basex-talk@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@gmail.com Þæs oferéode, ðisses swá mæg. -- Deor ("That passed, so may this.")
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
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@gmail.com Sent: Friday, April 16, 2021 11:20 PM To: Peter Villadsen Peter.Villadsen@microsoft.com Cc: BaseX basex-talk@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@gmail.com Þæs oferéode, ðisses swá mæg. -- Deor ("That passed, so may this.")
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
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
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
basex-talk@mailman.uni-konstanz.de