Can classes of same package spread across multiple Jar files?

后端 未结 5 849
北荒
北荒 2021-01-04 01:43

I am using some classes from a JAR file and they belong to a package (com.abc.xyz).

The class am writing also belongs to that package but I won\'t be able to bundle

5条回答
  •  被撕碎了的回忆
    2021-01-04 02:17

    By default, absolutely.

    However, if you want to make sure that classes from a particular package are only loaded from one jar file, you can add that information to the manifest.

提交回复
热议问题