http://www.oracle.com/technology/software/products/jrockit/index.html
这里选择Oracle JRockit Real Time 3.1.2 for Java version 61 Linux x86-64 大概121M
http://download.oracle.com/otn/bea/jrockit/jrrt-3.1.2-1.6.0-linux-x64.bin
必需要登录后才能下载,wget不好使,用windows下载后再传到服务器上。
chmod u+x jrrt-3.1.2-1.6.0-linux-x64.bin
./jrrt-3.1.2-1.6.0-linux-x64.bin
根据提示一步步安装。
我安装在/usr/jrrt-3.1.2-1.6.0 目录下,做个软连接到/usr/jrrt
ln -s /usr/jrrt-3.1.2-1.6.0 /usr/jrrt
修改环境变量,如果之前有设置,只需修改JAVA_HOME到新路径
vi /etc/profile
#set for j2sdk
JAVA_HOME=/usr/jrrt
export JAVA_HOME
CLASSPATH=$JAVA_HOME/jre/lib/ext/jcert.jar:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/jpda.jar:$JAVA_HOME/lib/tools.jar
export CLASSPATH
PATH=.:$PATH:$JAVA_HOME/bin:$JAVA_HOME/jre/bin
export PATH
关闭tomcat
source /etc/profile
启动tomcat,完成
参考:
http://javaworld.org.ru/java_2344.html
One Response
Stay in touch with the conversation, subscribe to the RSS feed for comments on this post.
Continuing the Discussion