新房升级JDK1.7指南

新房升级JDK1.7指南

1.概述

操作系统:Red Hat Enterprise Linux Server release 5.8 (Tikanga)

服务器:resin

项目架构:MyBatise+spring+springMVC


2.安装JDK1.7

安装文件:jdk-7u79-linux-x64.gz

# tar -zxvf jdk-7u79-linux-x64.gz


设置环境变量
JAVA_HOME=/usr/java/jdk1.7.0_79
ANT_HOME=/usr/java/ant
PATH=$JAVA_HOME/bin:$ANT_HOME/bin:$PATH
CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
export JAVA_HOME ANT_HOME  PATH CLASSPATH

生效环境变量

# source /etc/profile


3.修改启动脚本

/etc/init.d/wapservice.soufun.com.sh 和 /etc/init.d/wapservice.soufun.com.1.sh

JAVA_HOME="/usr/java/jdk1.7.0_79"
RESIN_HOME="/usr/local/resin"
JAVA="/usr/java/jdk1.7.0_79/bin/java"


4.要修改的文件列表

com/soufun/wap/action/ShopAction.java
com/soufun/wap/activity/handleManage/ChopHandsMc.java
com/soufun/wap/activity/handle/SlotMachineHc.java
com/soufun/wap/activity/handle/HeavenLuckHc.java
com/soufun/wap/activity/handle/DafuwengHc.java
com/soufun/wap/activity/handle/LifeCircleHc.java
com/soufun/wap/manage/ManagerLouShu.java
com/soufun/wap/action/UserAction.java
com/soufun/wap/common/DownloadPic.java
com/soufun/wap/util/CompressPicDemo.java



你可能感兴趣的:(jdk)