Closed skidder closed 7 years ago
@skidder Yes, I am intending to change this (right now in my current PR actually) because I suspected weird handling of the bundled JavaFX (later on).
Feel free to add a Pair class to org.numenta.nupic.utils with a getFirst() / getLast()
method or equivalent names of your choosing? ...and submit a PR and I will just use yours?
The JavaFX
javafx.util.Pair
is used by 3 classes in the productionhtm.java
codebase (src/main/java
). JavaFX isn't a problem on bare-metal hardware or virtual machines, but Docker deployments are more challenging. JavaFX requires a window manager that isn't available on container architectures. Most Docker base images with the JDK or JRE do not provide JavaFX at runtime, resulting in an exception like the following:This seems overkill just to support a
Pair
class that could be provided numerous other ways. Can you provide a custom Pair implementation, or use a Pair implementation from an existing library dependency (e.g.chaschev.lang.Pair
)?