Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Hide public classes in JAR

Tags:

java

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

like image 674
I4004 Avatar asked Oct 14 '22 23:10

I4004


1 Answers

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

like image 150
I4004 Avatar answered Oct 19 '22 23:10

I4004