How do i get jars from manifest's Class-Path-entries

前端 未结 2 1129
情话喂你
情话喂你 2021-01-13 23:19

I have a runnable jar with two jars in the Class-Path entry of its manifest file:

Class-Path: module1-0.0.1-SNAPSHOT.jar base-0.0.1-SNAPSHOT.jar
Main-Class:          


        
2条回答
  •  囚心锁ツ
    2021-01-13 23:43

    I think you will need to use the Manifest class to read in the MANIFEST.MF file and extract the Class-Path attribute using that class

提交回复
热议问题