- 论坛徽章:
- 0
|
论坛里说过很多的 \r\n前段时间刚弄了一下\r\nsolaris8+jdk1.6\r\n贴一个 1.4的也差不多吧估计\r\n\r\n在Solaris8上安装JDK1.6\r\n1. 先要将以前的java包删除! \r\n使用admintool删除jdk 1.3\r\n或者:\r\npkgrm SUNWj3dev SUNWj3dmo SUNWj3dvx SUNWj3irt SUNWj3man SUNWj3rt SUNWj3rtx\r\npkgrm SUNWlj3dv SUNWlj3rt \r\n (如果有的话,pkginfo | grep SUNWj3 查看)\r\n\r\n2.拷贝jdk-6u3-solaris-sparc.tar.Z (32bit)\r\n jdk-6u3-solaris-sparcv9.tar.Z (64bit)\r\n\r\n3.进入软件目录,安装JDK 1.6\r\n #uncompress jdk-6u3-solaris-sparc.tar.Z\r\n #tar xvf jdk-6u3-solaris-sparc.tar\r\n #pkgadd -d .\r\n #uncompress jdk-6u3-solaris-sparcv9.tar.Z\r\n #tar xvf jdk-6u3-solaris-sparcv9.tar\r\n #pkgadd -d .\r\n\r\n4.修改环境变量\r\n #cp /etc/skel/local.profile /.profile\r\n #vi /.profile\r\n PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/ccs/bin:/usr/ucb:/etc:.\r\nexport PATH\r\nJAVA_HOME=/usr/jdk/jdk1.6.0_03\r\nCLASSPATH=/usr/jdk/jdk1.6.0_03/lib:/usr/jdk/jdk1.6.0_03/jre/lib\r\nexport JAVA_HOME CLASSPATH\r\n \r\n #vi /etc/skel/local.profile\r\n PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/ccs/bin:/usr/ucb:/etc:.\r\nexport PATH\r\nJAVA_HOME=/usr/jdk/jdk1.6.0_03\r\nCLASSPATH=/usr/jdk/jdk1.6.0_03/lib:/usr/jdk/jdk1.6.0_03/jre/lib\r\nexport JAVA_HOME CLASSPATH\r\n\r\n #vi /etc/skel/local.cshrc\r\n set path=(/bin /sbin /usr/bin /usr/sbin /usr/local/bin /usr/ccs/bin /usr/ucb /etc .)\r\nset JAVA_HOME=/usr/jdk/jdk1.6.0_03\r\nset CLASSPATH=(/usr/jdk/jdk1.6.0_03/lib /usr/jdk/jdk1.6.0_03/jre/lib)\r\n\r\n #rm /usr/bin/java\r\n #ln -s /usr/jdk/jdk1.6.0_03/bin/java /usr/bin/java |
|