1、下载jar包并安装SPECjvm2008_1_01_setup.jar
#java -jar SPECjvm2008_1_01_setup.jar -i console
下载地址:http://www.spec.org/download.html
2、环境变量设置
#source /etc/profile使之生效
生效后#echo $JAVA_HOME应该会打印出设置的JDK路径。
3、在安装目录下找到run-specjvm.sh并设置执行权限。
SPECJVM是否安装成功
#./run-specjvm.sh startup.helloworld -ikv
startup.helloworld是SPECJVM中的一个测试例,成功后会显示如下内容:
SPECjvm2008 Base
Properties file: none
Benchmarks: startup.helloworld
WARNING: Run will not be compliant.
Properties file: none
Benchmarks: startup.helloworld
WARNING: Run will not be compliant.