Hacker News new | ask | show | jobs
by mrudolph22 954 days ago
Java doesn’t have a universal practical solution for this. Principled solutions based on custom class loaders (such as OSGi) added tremendous complexity and created more problems than they solved. Other solutions such as shading (renaming classes and their usages to prevent name conflicts between different versions) work in some cases but have their own limitations and drawbacks.
1 comments

What about Java modules (aka JEP-200, aka Project Jigsaw, completed in 2017)?

Used it for JavaFX apps with no problems.

Java modules are fine but don’t offer a solution for version conflicts.