absolute versus relative path names in jar manifest

前端 未结 1 1025
忘了有多久
忘了有多久 2021-01-14 16:35

I want to reference a jar file in fixed location for use by multiple executable jars rather than include that jar in each of the executables. I have the following setup whic

1条回答
  •  忘掉有多难
    2021-01-14 17:21

    Class-Path attribute is interpreted as a list of URLs, so, to use an absolute path (represented with a URL here), it should start with schema and use forward slashes.

    Try the following:

    Class-Path: file:///C:/Users/Admin/workspace/TestGradle/commons-math3-3.6.1.jar
    

    0 讨论(0)
提交回复
热议问题