Update Hatch Java / Javafx versions
Bug #1817932 reported by
Bill Erickson
This bug report is a duplicate of:
Bug #1830391: Hatch omnibus circa 3.3 (Java updates and more).
Edit
Remove
This bug affects 4 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Evergreen |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Spawned from bug #1741299, since this requires additional discussion.
As noted in bug #1741299, a bug in the JavaFX 1.8 code prevents Dymo (or other small-paper) printers from working. This bug is resolved in JavaFX versions 1.9 and above. I did my testing on Java 1.11 from https:/
Given licensing funkiness with newer Java versions, we may have to change how we deploy the code. Note the downloads from jdk.java.net are GPL-licensed, but they do not include installers, just zip files of pre-built binaries.
Documentation on my test setup to follow.
Changed in evergreen: | |
assignee: | nobody → Kyle Huckins (khuckins) |
Changed in evergreen: | |
assignee: | Kyle Huckins (khuckins) → Bill Erickson (berick) |
status: | New → In Progress |
Changed in evergreen: | |
milestone: | 3.3.1 → 3.3.2 |
To post a comment you must log in.
This is how I tested in Linux. The same general procedures apply to Windows, assuming you fetch Windows binaries instead, of course, and manually install the JSON jar file.
The Hatch working branch applies a minor deprecation fix for jdk 11 and modifies hatch.sh and hatch.bat to look for the jdk 11 files in the local directory.
====== ils.org: Hatch.git ils.org: working/ Hatch.git lp1817932- jdk11 working/ user/berick/ lp1741299- jdk11
git clone git.evergreen-
cd Hatch
git remote add working git.evergreen-
git fetch working
git checkout -b user/berick/
wget https:/ /download. java.net/ java/GA/ jdk11/9/ GPL/openjdk- 11.0.2_ linux-x64_ bin.tar. gz /download2. gluonhq. com/openjfx/ 11.0.2/ openjfx- 11.0.2_ linux-x64_ bin-sdk. zip 11.0.2_ linux-x64_ bin.tar. gz 11.0.2_ linux-x64_ bin-sdk. zip
wget https:/
tar -zxf openjdk-
unzip openjfx-
# hatch.sh assumes ./jdk-11 and ./javafx-sdk-11
mv jdk-11.0.2 jdk-11
mv javafx-sdk-11.0.2 javafx-sdk-11
./hatch.sh compile
./hatch.sh test
=====
Some questions:
1. Do we want to bundle Java and JavaFX binaries in with Hatch for deployment instead of requiring it be installed in advance? This gives us a lot of control and simplicity, but requires we monitor and create Hatch installer builds for java security updates.
2. Does the licence even allow bundling? I think so, but more eyes required.
From the download site:
"This page provides production-ready open-source builds of the Java Development Kit, version 11.0.2, an implementation of the Java SE 11.0.2 Platform under the GNU General Public License, version 2, with the Classpath Exception."
https:/ /openjdk. java.net/ legal/gplv2+ ce.html
Note the OpenJFX files use the same license, but the builds are provided by a third-party. See https:/ /openjfx. io/ for more.