我正在尝试使用Ubuntu 17.10平台上的Open JDK9从源代码构建Jmeter 4_0。 构建失败,出现以下错误:
init-version:
[echo] jmeter.version = 4.0
[echo] display.version = 4.0.20180223
[echo] implementation.version = 4.0.20180223
compile-jorphan:
[javac] Compiling 61 source files to /root/apache-jmeter-4.0/build/jorphan
[javac] warning: [options] bootstrap class path not set in conjunction with -source 1.8
[javac] 1 warning
[javac] An exception has occurred in the compiler (9-Ubuntu). Please file a bug against the Java compiler via the Java bug reporting page (http://bugreport.java.com) after checking the Bug Database (http://bugs.java.com) for duplicates. Include your program and the following diagnostic in your report. Thank you.
[javac] java.lang.NullPointerException
[javac] at jdk.zipfs/jdk.nio.zipfs.JarFileSystem.getVersionMap(JarFileSystem.java:137)
[javac] at jdk.zipfs/jdk.nio.zipfs.JarFileSystem.createVersionedLinks(JarFileSystem.java:112)
[javac] at jdk.zipfs/jdk.nio.zipfs.JarFileSystem.<init>(JarFileSystem.java:85)
[javac] at jdk.zipfs/jdk.nio.zipfs.ZipFileSystemProvider.newFileSystem(ZipFileSystemProvider.java:134)
[javac] at jdk.compiler/com.sun.tools.javac.file.JavacFileManager$ArchiveContainer.<init>(JavacFileManager.java:517)
[javac] at jdk.compiler/com.sun.tools.javac.file.JavacFileManager.getContainer(JavacFileManager.java:319)
[javac] at jdk.compiler/com.sun.tools.javac.file.JavacFileManager.list(JavacFileManager.java:715)
遵循的步骤:
installed openjdk-9-jdk
wget http://redrockdigimark.com/apachemirror//jmeter/source/apache-jmeter-4.0_src.zip
unzip apache-jmeter-4.0_src.zip
cd apache-jmeter-4.0
ant download_jars
ant
尝试
git clone http://git.apache.org/jmeter.git
git checkout v4_0
参考:http://jmeter.apache.org/download_jmeter.cgi
如果我在这里遗漏任何东西,请告诉我。
答案 0 :(得分:1)
根据https://stackoverflow.com/users/5318223/kiril-s回答(谁应回答而不是评论:-)获得奖励)。
这是一个JDK错误:
修正了JDK11的发布。希望它会被移植。