1.JDK:
下载jdk-6u29-linux-i586.bin版本。
修改权限:sudo chmod u+x /home/java/jdk-6u29-linux-i586.bin
运行:sudo dk-6u29-linux-i586.bin
配置环境变量:
打开:sudo vi /etc/environment
编辑:PATH="......:/home/java/jdk1.6.0_29/bin"
CLASSPATH=.:/home/java/jdk1.6.0_29/lib
JAVA_HOME=/home/java/jdk1.6.0_29
重启。
补充(环境变量另一种配置):
1. $sudo -i ----进入超级用户
2. #export JAVA_HOME=/home/java/jdk1.6.0_29 ----载入JAVA根目录
3. #export PATH=$JAVA_HOME/bin:$PATH ----设置环境变量
(应用文件)
4. #export CLASSPATH=.:JAVA_HOME/lib.tools.jar ----设置环境变量
(类文件)
5. #export JAVA_HOME CLASSPATH PATH ----将三个文件一起载入
接着,在终端使用echo命令检查环境变量设置情况。
#echo $JAVA_HOME
#echo $CLASSPATH
#echo $PATH
2.OC4J:
download one of the OC4J containers from here
extract the archive where you want to have the server installed (let’s call this OC4J_HOME)
change the file permissions for $OC4J_HOME/bin/oc4j to 744
chmod 744 $OC4J_HOME/bin/oc4j
edit the script located at $OC4J_HOME/bin/oc4j so that right after the configuration section you have something like:
#########################################################
########## START CONFIGURATION SECTION ##################
#########################################################
ORACLE_HOME=/home/oc4j
J2EE_HOME=$ORACLE_HOME/j2ee/home
but replace OC4J_HOME with the actual folder path
start the server and add the credentials for the oc4jadmin user
run(oc4j/bin):
sh oc4j -start
注:oc4j更改端口号位置:%home/j2ee/home/config/目录下的“default-web-site.xml”文件
3.MAPVIEWER:
客户端打开控制台:http://server:8888/em
在部署中部署mapviewer的ear包文件。
成功后运行:http://127.0.0.1:8888/mapviewer
Ubuntu:安装JDK和OC4J和MAPVIEWER
猜你喜欢
转载自hua04104.iteye.com/blog/1233728
今日推荐
周排行