3 ms·
Agree and I am very glad I don't have to deal with this type of thing any more. Sane support for different JREs is one of the use cases where containerization
by seanhunter 6y ago
Agree and I am very glad I don't have to deal with this type of thing any more.
Sane support for different JREs is one of the use cases where containerization would really show its worth I expect. It should be relatively easy to set up a container with the app, the right jre version and a consistent set of dependency jars, all wrapped up with a shellscript that sets the class path and adds any horrible monkey patches you need to get things working and then launches it with the right set of arguments etc. Once that's done all that nastiness would be kept in its own private hell and you could have multiple of them running simultaneously and know that they won't infect each other and upgrading any one piece and/or your system jdk isn't going to kill everything.
It's not dependent on the system or user classpath or other environment variables, so should be reproducible and avoid weird "it works for me" bugs where the user is suffering something you just don't see.
Safe to say that's far from what "write once, run everywhere" seems to promise.