Bad path warning, where is it coming from?

后端 未结 4 943
野性不改
野性不改 2021-02-02 10:02

When I compile my project with compiler warnings (JDK 1.5) I get a bunch of bad path element warnings:

Warning:: [path] bad path element \"C:\\Users\\User\\MyJava\\commo

4条回答
  •  再見小時候
    2021-02-02 10:28

    The path elements in question are most likely in a JAR's manifest file. To locate the offending JAR you can run this shell script which will extract only the manifest files and show any classpath it has:

    for i in *.jar; do echo $i; /path/to/your/jdk/bin/jar xf $i META-INF/MANIFEST.MF; grep -i 'class-path' META-INF/MANIFEST.MF; done
    

提交回复
热议问题