下载了 JMeter 进行一些测试,但尝试运行它时出现以下错误
[oracle@ripple jakarta-jmeter-2.5]$ bin/jmeter
Warning: -server not understood. Ignoring.
Warning: -XX:+HeapDumpOnOutOfMemoryError not understood. Ignoring.
Warning: -Xms512m not understood. Ignoring.
Warning: -Xmx512m not understood. Ignoring.
Warning: -XX:NewSize=128m not understood. Ignoring.
Warning: -XX:MaxNewSize=128m not understood. Ignoring.
Warning: -XX:MaxTenuringThreshold=2 not understood. Ignoring.
Warning: -XX:PermSize=64m not understood. Ignoring.
Warning: -XX:MaxPermSize=64m not understood. Ignoring.
Warning: -jar not understood. Ignoring.
Exception in thread "main" java.lang.NoClassDefFoundError: bin.ApacheJMeter.jar
at gnu.gcj.runtime.FirstThread.run() (/usr/lib64/libgcj.so.5.0.0)
at _Jv_ThreadRun(java.lang.Thread) (/usr/lib64/libgcj.so.5.0.0)
at _Jv_RunMain(java.lang.Class, byte const, int, byte const, boolean) (/usr/lib64/libgcj.so.5.0.0)
at __gcj_personality_v0 (/home/oracle/jakarta-jmeter-2.5/java.version=1.4.2)
at __libc_start_main (/lib64/tls/libc-2.3.4.so)
at _Jv_RegisterClasses (/home/oracle/jakarta-jmeter-2.5/java.version=1.4.2)
Java 已安装并可运行(此服务器运行 Oracle IAS 服务器)。如何让 JMeter 工作?
运行 RHEL 4 update 5,Java 版本为 1.4.2
答案1
您应该从 Oracle 站点下载并安装 Java 1.6 SDK。如您所见,Java 的 GNU 实现 (GNU GCJ) 无法处理启动参数。