Alright, so I am writing a JAR to be the back end implementation of an instant messenger system. In order to get the classes to interact and all, I am using public class MyClassHere { ... }. But when I compile all the classes into the JAR, I don’t want any class to be accessible except the main class. How can I do this?
Alright, so I am writing a JAR to be the back end implementation of
Share
The only way I can think of is to use a tool like ProGuard in your build chain to stop exposing everything outside your main class.