Invalid Class-Path in compiler jar files
Werner Dietl
wdietl at gmail.com
Wed Apr 22 18:00:01 UTC 2015
I've made a clean jdk9/dev/langtools compiler build.
I then try running the compiler using:
java -classpath ./lib/java.compiler.jar:./lib/jdk.compiler.jar
com.sun.tools.javac.Main -Xlint Min.java
where Min.java is a trivial class.
I get:
warning: [path] bad path element
"jdk9-dev/langtools/dist/./lib/@{jarclasspath}": no such file or
directory
1 warning
I think this is caused by the MANIFEST.MF files in these .jar files:
Manifest-Version: 1.0
Ant-Version: Apache Ant 1.9.3
Created-By: 1.8.0_45-b14 (Oracle Corporation)
Class-Path: @{jarclasspath}
I use this way of invoking the compiler from an ant build.xml file.
Does anyone else see the same behavior?
Thanks,
cu, WMD.
--
http://www.google.com/profiles/wdietl
More information about the compiler-dev
mailing list