Reduce external jar file size

后端 未结 4 1293
长情又很酷
长情又很酷 2020-12-16 23:35

I\'ve developed a module for a Java project. The module depends on external library (fastutil). The problem is, the fastutil.jar file is a couple o

4条回答
  •  醉酒成梦
    2020-12-16 23:59

    Yeah one crude is to have a backup of your original jar. then remove all unused class files from the jar. and there may be some internal references to other class which you can add as and when it is required. ie while executing it may throw a class not found exception so then you can add that class from the original jar to this jar.

提交回复
热议问题