我正在尝试运行此处(https://github.com/dacapobench/dacapobench)提供的 daCapo 基准测试。
我给了 JAVA_HOME 作为export JAVA_HOME="/home/srcshetty/Desktop/ALL_JDKs/jdk-13.0.1/"
我已经安装了构建基准测试所需的所有依赖项。
ant lusearch
我通过在文件夹中运行来测试 lusearch 基准benchmark
。
当我使用JDK12及以下版本时它运行成功,而当我使用JDK13时它不起作用。
我收到以下 JDK13 错误消息。
[exec] compile-core:
[exec] [mkdir] Created dir: /home/srcshetty/Desktop/TheProjectParGC/Benchmarks/dacapobench/benchmarks/libs/lucene/build/lucene-7.1.0/build/core/classes/java
[exec] [javac] Compiling 824 source files to /home/srcshetty/Desktop/TheProjectParGC/Benchmarks/dacapobench/benchmarks/libs/lucene/build/lucene-7.1.0/build/core/classes/java
[exec] [javac] /home/srcshetty/Desktop/TheProjectParGC/Benchmarks/dacapobench/benchmarks/libs/lucene/build/lucene-7.1.0/core/src/java/org/apache/lucene/codecs/blocktree/BlockTreeTermsWriter.java:97: error: heading used out of sequence: <H3>, compared to implicit preceding heading: <H1>
[exec] [javac] * <h3>Term Dictionary</h3>
[exec] [javac] ^
[exec] [javac] /home/srcshetty/Desktop/TheProjectParGC/Benchmarks/dacapobench/benchmarks/libs/lucene/build/lucene-7.1.0/core/src/java/org/apache/lucene/codecs/lucene70/package-info.java:21: error: unexpected heading used: <H1>, compared to implicit preceding heading: <H1>
[exec] [javac] * <h1>Apache Lucene - Index File Formats</h1>
[exec] [javac] ^
[exec] [javac] /home/srcshetty/Desktop/TheProjectParGC/Benchmarks/dacapobench/benchmarks/libs/lucene/build/lucene-7.1.0/core/src/java/org/apache/lucene/index/PointValues.java:40: error: unexpected heading used: <H1>, compared to implicit preceding heading: <H1>
[exec] [javac] * <h1>Basic Point Types</h1>
[exec] [javac] ^
[exec] [javac] /home/srcshetty/Desktop/TheProjectParGC/Benchmarks/dacapobench/benchmarks/libs/lucene/build/lucene-7.1.0/core/src/java/org/apache/lucene/index/PointValues.java:67: error: unexpected heading used: <H1>, compared to implicit preceding heading: <H1>
[exec] [javac] * <h1>Geospatial Point Types</h1>
[exec] [javac] ^
[exec] [javac] /home/srcshetty/Desktop/TheProjectParGC/Benchmarks/dacapobench/benchmarks/libs/lucene/build/lucene-7.1.0/core/src/java/org/apache/lucene/index/PointValues.java:77: error: unexpected heading used: <H1>, compared to implicit preceding heading: <H1>
[exec] [javac] * <h1>Advanced usage</h1>
[exec] [javac] ^
[exec] [javac] /home/srcshetty/Desktop/TheProjectParGC/Benchmarks/dacapobench/benchmarks/libs/lucene/build/lucene-7.1.0/core/src/java/org/apache/lucene/search/Sort.java:37: error: heading used out of sequence: <H3>, compared to implicit preceding heading: <H1>
[exec] [javac] * <h3>Valid Types of Values</h3>
[exec] [javac] ^
[exec] [javac] /home/srcshetty/Desktop/TheProjectParGC/Benchmarks/dacapobench/benchmarks/libs/lucene/build/lucene-7.1.0/core/src/java/org/apache/lucene/util/packed/package-info.java:34: error: heading used out of sequence: <H3>, compared to implicit preceding heading: <H1>
[exec] [javac] * <h3>In-memory structures</h3>
[exec] [javac] ^
[exec]
[exec] BUILD FAILED
当我使用 JDK12 运行时,我必须将源代码从 1.5 更改为 1.7 或更高版本并成功构建,并且我也成功运行了基准测试。但是使用 JDK13,我得到了上述错误,我无法弄清楚。