This is an automated archive made by the Lemmit Bot.

The original was posted on /r/java by /u/manzanita2 on 2024-10-13 22:22:22+00:00.


I know that java has the ability to dynamically load and instantiate classes and then call methods on them all using Strings. But leaving that capacity aside, and possibly/likely broken, could a certain amount of ahead of time link-type analysis provide a list of ONLY those classes which will be used in an application and hence allow creation of a Big Jar with only those classes ? It seems like this would be useful for situations where a small deployable artifact would be useful. Either Embedded or Containerized applications.

Discuss.