I4004
I4004

Reputation: 145

Hide public classes in JAR

Does anyone know the way to hide public classes in JAR file. In other words is there any way to create "jar-visible" classes. The point is to hide public classes in my JAR file and provide to my JAR-users access to specified classes. F.e. similar thing is implemented in OSGI framework with the help of "Export-Package" parameter in MANIFEST.MF

Upvotes: 5

Views: 2623

Answers (1)

I4004
I4004

Reputation: 145

Use ProGuard ( http://proguard.sourceforge.net/ ) lib.

Upvotes: 4

Related Questions