Linux jdk1.6安装与卸载文章分类:操纵体系 1、下载安装JDK1.6 1、下载jdk1.6的官方地址: 2、jdk1.6供赐与下两种自解压文件: 1)jdk-6u22-linux-i586.bin 2)jdk-6u22-linux-i586-rpm.bin 3、我下载的是jdk-6u22-linux-i586-rpm.bin 4、给全部用户添加可实行的权限 #chmod +x jdk-6u22-linux-i586-rpm.bin 5、实行该文件,下令以下: #./jdk-6u22-linux-i586-rpm.bin 实行后会解压出一些rpm软件包,个中有jdk-6u22-linux-i586.rpm这是主程式包,接下来就是安装这个主程序包。 6.、切换到root用户,进进jdk-6u22-linux-i586.rpm存放的目录,实行以下下令: rpm -ivh jdk-6u22-linux-i586.rpm 安装软件会将JDK自动安装到 /usr/java/jdk-1.6.0_22-fcs目录下。 二、安装好jdk后设置环境变量。 1、点窜用户环境变量 假设使用java jdk的用户为 oracle,编辑该用户的.bashrc文件进行环境变量设置。 在 .bashrc文件中加进: # vi /home/oracle/.bashrc export JAVA_HOME=/usr/java/jdk-1.6.0_22-fcs export CLASSPATH=$CLASSPATH:$JAVA_HOME/lib:$JAVA_HOME/jre/lib export PATH=$JAVA_HOME/bin:$JAVA_HOME/jre/bin:$PATH:$HOMR/bin 注: 点窜文件后要想顿时见效还要运行$ source /home/oracle/.bashrc不然只能鄙人次重进此用户时见效。 假如不在/home/oracle/.bashrc文件中设置环境变量,可以将以上设置信息添加到/home/oracle/.bash_profile文件中往。 2、假如全部用户都想共享jdk的环境变量,可以通过以下方式设置。 (但建议最好不要如许,万一有其他用户使用其他JKD就会受到影响。) 在/etc/profile文件中加进: # vi /etc/profile export JAVA_HOME=/usr/java/jdk-1.6.0_22-fcs export CLASSPATH=$CLASSPATH:$JAVA_HOME/lib:$JAVA_HOME/jre/lib export PATH=$JAVA_HOME/bin:$JAVA_HOME/jre/bin:$PATH:$HOMR/bin 注:点窜文件后要想顿时见效还要运行# source /etc/profile不然只能鄙人次重进此用户时见效。 记得CLASSPATH路径中加进$CLASSPATH:不能在解释实行class文件时会报错。 3、卸载jdk1.6 1、卸载体系自带的jdk版本: 查看自带的jdk: #rpm -qa|grep gcj 看到以下信息: libgcj-4.1.2-44.el5 java-1.4.2-gcj-compat-1.4.2.0-40jpp.115 使用rpm -e --nodeps 下令删除上面查找的内容: #rpm -e –nodeps java-1.4.2-gcj-compat-1.4.2.0-40jpp.115 2、卸载rpm安装的jkd版本 查看安装的jdk: #rpm -qa|grep jdk 看到以下信息: jdk-1.6.0_22-fcs 卸载: #rpm -e --nodeps jdk-1.6.0_22-fcs 安装相干信息 -------------------------------------------------------------------- inflating: jdk1.6.0_23/db/docs/html/tuning/rtuntransform866214.html inflating: jdk1.6.0_23/db/docs/html/tuning/rtuntransform866547.html inflating: jdk1.6.0_23/db/docs/html/tuning/rtuntransform866587.html inflating: jdk1.6.0_23/db/docs/html/tuning/rtuntransform867602.html inflating: jdk1.6.0_23/db/docs/html/tuning/stmt_os.jpg inflating: jdk1.6.0_23/db/docs/html/tuning/toc.html inflating: jdk1.6.0_23/db/docs/html/tuning/ttundepth33391.html inflating: jdk1.6.0_23/db/docs/html/tuning/ttundepth34375.html inflating: jdk1.6.0_23/db/docs/html/tuning/tuning-single.html creating: jdk1.6.0_23/db/docs/pdf/ creating: jdk1.6.0_23/db/docs/pdf/adminguide/ inflating: jdk1.6.0_23/db/docs/pdf/adminguide/derbyadmin.pdf creating: jdk1.6.0_23/db/docs/pdf/devguide/ inflating: jdk1.6.0_23/db/docs/pdf/devguide/derbydev.pdf creating: jdk1.6.0_23/db/docs/pdf/getstart/ inflating: jdk1.6.0_23/db/docs/pdf/getstart/getstartderby.pdf creating: jdk1.6.0_23/db/docs/pdf/ref/ inflating: jdk1.6.0_23/db/docs/pdf/ref/refderby.pdf creating: jdk1.6.0_23/db/docs/pdf/tools/ inflating: jdk1.6.0_23/db/docs/pdf/tools/derbytools.pdf creating: jdk1.6.0_23/db/docs/pdf/tuning/ inflating: jdk1.6.0_23/db/docs/pdf/tuning/tuningderby.pdf inflating: jdk1.6.0_23/db/index.html creating: jdk1.6.0_23/db/javadoc/ creating: jdk1.6.0_23/db/javadoc/jdbc3/ creating: jdk1.6.0_23/db/javadoc/jdbc3/org/ creating: jdk1.6.0_23/db/javadoc/jdbc3/org/apache/ creating: jdk1.6.0_23/db/javadoc/jdbc3/org/apache/derby/ creating: jdk1.6.0_23/db/javadoc/jdbc3/org/apache/derby/authentication/ inflating: jdk1.6.0_23/db/javadoc/jdbc3/org/apache/derby/authentication/UserAuthenticator.html inflating: jdk1.6.0_23/db/javadoc/jdbc3/org/apache/derby/authentication/package-frame.html inflating: jdk1.6.0_23/db/javadoc/jdbc3/org/apache/derby/authentication/package-summary.html inflating: jdk1.6.0_23/db/javadoc/jdbc3/org/apache/derby/authentication/package-tree.html creating: jdk1.6.0_23/db/javadoc/jdbc3/org/apache/derby/drda/ inflating: jdk1.6.0_23/db/javadoc/jdbc3/org/apache/derby/drda/NetServlet.html inflating: jdk1.6.0_23/db/javadoc/jdbc3/org/apache/derby/drda/NetworkServerControl.html inflating: jdk1.6.0_23/db/javadoc/jdbc3/org/apache/derby/drda/package-frame.html inflating: jdk1.6.0_23/db/javadoc/jdbc3/org/apache/derby/drda/package-summary.html inflating: jdk1.6.0_23/db/javadoc/jdbc3/org/apache/derby/drda/package-tree.html creating: jdk1.6.0_23/db/javadoc/jdbc3/org/apache/derby/jdbc/ inflating: jdk1.6.0_23/db/javadoc/jdbc3/org/apache/derby/jdbc/ClientBaseDataSource.html inflating: jdk1.6.0_23/db/javadoc/jdbc3/org/apache/derby/jdbc/ClientConnectionPoolDataSource.html inflating: jdk1.6.0_23/db/javadoc/jdbc3/org/apache/derby/jdbc/ClientDataSource.html inflating: jdk1.6.0_23/db/javadoc/jdbc3/org/apache/derby/jdbc/ClientDriver.html inflating: jdk1.6.0_23/db/javadoc/jdbc3/org/apache/derby/jdbc/ClientXADataSource.html inflating: jdk1.6.0_23/db/javadoc/jdbc3/org/apache/derby/jdbc/EmbeddedConnectionPoolDataSource.html inflating: jdk1.6.0_23/db/javadoc/jdbc3/org/apache/derby/jdbc/EmbeddedDataSource.html inflating: jdk1.6.0_23/db/javadoc/jdbc3/org/apache/derby/jdbc/EmbeddedDriver.html inflating: jdk1.6.0_23/db/javadoc/jdbc3/org/apache/derby/jdbc/EmbeddedSimpleDataSource.html inflating: jdk1.6.0_23/db/javadoc/jdbc3/org/apache/derby/jdbc/EmbeddedXADataSource.html inflating: jdk1.6.0_23/db/javadoc/jdbc3/org/apache/derby/jdbc/package-frame.html inflating: jdk1.6.0_23/db/javadoc/jdbc3/org/apache/derby/jdbc/package-summary.html inflating: jdk1.6.0_23/db/javadoc/jdbc3/org/apache/derby/jdbc/package-tree.html creating: jdk1.6.0_23/db/javadoc/jdbc3/org/apache/derby/mbeans/ creating: jdk1.6.0_23/db/javadoc/jdbc3/org/apache/derby/mbeans/drda/ inflating: jdk1.6.0_23/db/javadoc/jdbc3/org/apache/derby/mbeans/drda/NetworkServerMBean.html inflating: jdk1.6.0_23/db/javadoc/jdbc3/org/apache/derby/mbeans/drda/package-frame.html inflating: jdk1.6.0_23/db/javadoc/jdbc3/org/apache/derby/mbeans/drda/package-summary.html inflating: jdk1.6.0_23/db/javadoc/jdbc3/org/apache/derby/mbeans/drda/package-tree.html inflating: jdk1.6.0_23/db/javadoc/jdbc3/org/apache/derby/mbeans/JDBCMBean.html inflating: jdk1.6.0_23/db/javadoc/jdbc3/org/apache/derby/mbeans/Management.html inflating: jdk1.6.0_23/db/javadoc/jdbc3/org/apache/derby/mbeans/ManagementMBean.html inflating: jdk1.6.0_23/db/javadoc/jdbc3/org/apache/derby/mbeans/VersionMBean.html inflating: jdk1.6.0_23/db/javadoc/jdbc3/org/apache/derby/mbeans/package-frame.html inflating: jdk1.6.0_23/db/javadoc/jdbc3/org/apache/derby/mbeans/package-summary.html inflating: jdk1.6.0_23/db/javadoc/jdbc3/org/apache/derby/mbeans/package-tree.html creating: jdk1.6.0_23/db/javadoc/jdbc3/org/apache/derby/security/ inflating: jdk1.6.0_23/db/javadoc/jdbc3/org/apache/derby/security/SystemPermission.html inflating: jdk1.6.0_23/db/javadoc/jdbc3/org/apache/derby/security/package-frame.html inflating: jdk1.6.0_23/db/javadoc/jdbc3/org/apache/derby/security/package-summary.html inflating: jdk1.6.0_23/db/javadoc/jdbc3/org/apache/derby/security/package-tree.html creating: jdk1.6.0_23/db/javadoc/jdbc3/org/apache/derby/tools/ inflating: jdk1.6.0_23/db/javadoc/jdbc3/org/apache/derby/tools/dblook.html inflating: jdk1.6.0_23/db/javadoc/jdbc3/org/apache/derby/tools/ij.html inflating: jdk1.6.0_23/db/javadoc/jdbc3/org/apache/derby/tools/package-frame.html inflating: jdk1.6.0_23/db/javadoc/jdbc3/org/apache/derby/tools/package-summary.html inflating: jdk1.6.0_23/db/javadoc/jdbc3/org/apache/derby/tools/package-tree.html inflating: jdk1.6.0_23/db/javadoc/jdbc3/org/apache/derby/tools/sysinfo.html creating: jdk1.6.0_23/db/javadoc/jdbc3/org/apache/derby/vti/ inflating: jdk1.6.0_23/db/javadoc/jdbc3/org/apache/derby/vti/VTICosting.html inflating: jdk1.6.0_23/db/javadoc/jdbc3/org/apache/derby/vti/VTIEnvironment.html inflating: jdk1.6.0_23/db/javadoc/jdbc3/org/apache/derby/vti/package-frame.html inflating: jdk1.6.0_23/db/javadoc/jdbc3/org/apache/derby/vti/package-summary.html inflating: jdk1.6.0_23/db/javadoc/jdbc3/org/apache/derby/vti/package-tree.html creating: jdk1.6.0_23/db/javadoc/jdbc3/resources/ extracting: jdk1.6.0_23/db/javadoc/jdbc3/resources/derby_logo64.png extracting: jdk1.6.0_23/db/javadoc/jdbc3/resources/inherit.gif inflating: jdk1.6.0_23/db/javadoc/jdbc3/allclasses-frame.html inflating: jdk1.6.0_23/db/javadoc/jdbc3/allclasses-noframe.html inflating: jdk1.6.0_23/db/javadoc/jdbc3/constant-values.html inflating: jdk1.6.0_23/db/javadoc/jdbc3/deprecated-list.html inflating: jdk1.6.0_23/db/javadoc/jdbc3/help-doc.html inflating: jdk1.6.0_23/db/javadoc/jdbc3/index-all.html inflating: jdk1.6.0_23/db/javadoc/jdbc3/index.html inflating: jdk1.6.0_23/db/javadoc/jdbc3/overview-frame.html inflating: jdk1.6.0_23/db/javadoc/jdbc3/overview-summary.html inflating: jdk1.6.0_23/db/javadoc/jdbc3/overview-tree.html inflating: jdk1.6.0_23/db/javadoc/jdbc3/package-list inflating: jdk1.6.0_23/db/javadoc/jdbc3/serialized-form.html inflating: jdk1.6.0_23/db/javadoc/jdbc3/stylesheet.css creating: jdk1.6.0_23/db/javadoc/jdbc4/ creating: jdk1.6.0_23/db/javadoc/jdbc4/org/ creating: jdk1.6.0_23/db/javadoc/jdbc4/org/apache/ creating: jdk1.6.0_23/db/javadoc/jdbc4/org/apache/derby/ creating: jdk1.6.0_23/db/javadoc/jdbc4/org/apache/derby/authentication/ inflating: jdk1.6.0_23/db/javadoc/jdbc4/org/apache/derby/authentication/UserAuthenticator.html inflating: jdk1.6.0_23/db/javadoc/jdbc4/org/apache/derby/authentication/package-frame.html inflating: jdk1.6.0_23/db/javadoc/jdbc4/org/apache/derby/authentication/package-summary.html inflating: jdk1.6.0_23/db/javadoc/jdbc4/org/apache/derby/authentication/package-tree.html creating: jdk1.6.0_23/db/javadoc/jdbc4/org/apache/derby/drda/ inflating: jdk1.6.0_23/db/javadoc/jdbc4/org/apache/derby/drda/NetServlet.html inflating: jdk1.6.0_23/db/javadoc/jdbc4/org/apache/derby/drda/NetworkServerControl.html inflating: jdk1.6.0_23/db/javadoc/jdbc4/org/apache/derby/drda/package-frame.html inflating: jdk1.6.0_23/db/javadoc/jdbc4/org/apache/derby/drda/package-summary.html inflating: jdk1.6.0_23/db/javadoc/jdbc4/org/apache/derby/drda/package-tree.html creating: jdk1.6.0_23/db/javadoc/jdbc4/org/apache/derby/jdbc/ inflating: jdk1.6.0_23/db/javadoc/jdbc4/org/apache/derby/jdbc/ClientBaseDataSource.html inflating: jdk1.6.0_23/db/javadoc/jdbc4/org/apache/derby/jdbc/ClientConnectionPoolDataSource40.html inflating: jdk1.6.0_23/db/javadoc/jdbc4/org/apache/derby/jdbc/ClientDataSource40.html inflating: jdk1.6.0_23/db/javadoc/jdbc4/org/apache/derby/jdbc/ClientDriver.html inflating: jdk1.6.0_23/db/javadoc/jdbc4/org/apache/derby/jdbc/ClientXADataSource40.html inflating: jdk1.6.0_23/db/javadoc/jdbc4/org/apache/derby/jdbc/EmbeddedConnectionPoolDataSource40.html inflating: jdk1.6.0_23/db/javadoc/jdbc4/org/apache/derby/jdbc/EmbeddedDataSource40.html inflating: jdk1.6.0_23/db/javadoc/jdbc4/org/apache/derby/jdbc/EmbeddedDriver.html inflating: jdk1.6.0_23/db/javadoc/jdbc4/org/apache/derby/jdbc/EmbeddedXADataSource40.html inflating: jdk1.6.0_23/db/javadoc/jdbc4/org/apache/derby/jdbc/package-frame.html inflating: jdk1.6.0_23/db/javadoc/jdbc4/org/apache/derby/jdbc/package-summary.html inflating: jdk1.6.0_23/db/javadoc/jdbc4/org/apache/derby/jdbc/package-tree.html creating: jdk1.6.0_23/db/javadoc/jdbc4/org/apache/derby/mbeans/ creating: jdk1.6.0_23/db/javadoc/jdbc4/org/apache/derby/mbeans/drda/ inflating: jdk1.6.0_23/db/javadoc/jdbc4/org/apache/derby/mbeans/drda/NetworkServerMBean.html inflating: jdk1.6.0_23/db/javadoc/jdbc4/org/apache/derby/mbeans/drda/package-frame.html inflating: jdk1.6.0_23/db/javadoc/jdbc4/org/apache/derby/mbeans/drda/package-summary.html inflating: jdk1.6.0_23/db/javadoc/jdbc4/org/apache/derby/mbeans/drda/package-tree.html inflating: jdk1.6.0_23/db/javadoc/jdbc4/org/apache/derby/mbeans/JDBCMBean.html inflating: jdk1.6.0_23/db/javadoc/jdbc4/org/apache/derby/mbeans/Management.html inflating: jdk1.6.0_23/db/javadoc/jdbc4/org/apache/derby/mbeans/ManagementMBean.html inflating: jdk1.6.0_23/db/javadoc/jdbc4/org/apache/derby/mbeans/VersionMBean.html inflating: jdk1.6.0_23/db/javadoc/jdbc4/org/apache/derby/mbeans/package-frame.html inflating: jdk1.6.0_23/db/javadoc/jdbc4/org/apache/derby/mbeans/package-summary.html inflating: jdk1.6.0_23/db/javadoc/jdbc4/org/apache/derby/mbeans/package-tree.html creating: jdk1.6.0_23/db/javadoc/jdbc4/org/apache/derby/security/ inflating: jdk1.6.0_23/db/javadoc/jdbc4/org/apache/derby/security/SystemPermission.html inflating: jdk1.6.0_23/db/javadoc/jdbc4/org/apache/derby/security/package-frame.html inflating: jdk1.6.0_23/db/javadoc/jdbc4/org/apache/derby/security/package-summary.html inflating: jdk1.6.0_23/db/javadoc/jdbc4/org/apache/derby/security/package-tree.html creating: jdk1.6.0_23/db/javadoc/jdbc4/org/apache/derby/tools/ inflating: jdk1.6.0_23/db/javadoc/jdbc4/org/apache/derby/tools/dblook.html inflating: jdk1.6.0_23/db/javadoc/jdbc4/org/apache/derby/tools/ij.html inflating: jdk1.6.0_23/db/javadoc/jdbc4/org/apache/derby/tools/package-frame.html inflating: jdk1.6.0_23/db/javadoc/jdbc4/org/apache/derby/tools/package-summary.html inflating: jdk1.6.0_23/db/javadoc/jdbc4/org/apache/derby/tools/package-tree.html inflating: jdk1.6.0_23/db/javadoc/jdbc4/org/apache/derby/tools/sysinfo.html creating: jdk1.6.0_23/db/javadoc/jdbc4/org/apache/derby/vti/ inflating: jdk1.6.0_23/db/javadoc/jdbc4/org/apache/derby/vti/VTICosting.html inflating: jdk1.6.0_23/db/javadoc/jdbc4/org/apache/derby/vti/VTIEnvironment.html inflating: jdk1.6.0_23/db/javadoc/jdbc4/org/apache/derby/vti/package-frame.html inflating: jdk1.6.0_23/db/javadoc/jdbc4/org/apache/derby/vti/package-summary.html inflating: jdk1.6.0_23/db/javadoc/jdbc4/org/apache/derby/vti/package-tree.html creating: jdk1.6.0_23/db/javadoc/jdbc4/resources/ extracting: jdk1.6.0_23/db/javadoc/jdbc4/resources/derby_logo64.png extracting: jdk1.6.0_23/db/javadoc/jdbc4/resources/inherit.gif inflating: jdk1.6.0_23/db/javadoc/jdbc4/allclasses-frame.html inflating: jdk1.6.0_23/db/javadoc/jdbc4/allclasses-noframe.html inflating: jdk1.6.0_23/db/javadoc/jdbc4/constant-values.html inflating: jdk1.6.0_23/db/javadoc/jdbc4/deprecated-list.html inflating: jdk1.6.0_23/db/javadoc/jdbc4/help-doc.html inflating: jdk1.6.0_23/db/javadoc/jdbc4/index-all.html inflating: jdk1.6.0_23/db/javadoc/jdbc4/index.html inflating: jdk1.6.0_23/db/javadoc/jdbc4/overview-frame.html inflating: jdk1.6.0_23/db/javadoc/jdbc4/overview-summary.html inflating: jdk1.6.0_23/db/javadoc/jdbc4/overview-tree.html inflating: jdk1.6.0_23/db/javadoc/jdbc4/package-list inflating: jdk1.6.0_23/db/javadoc/jdbc4/serialized-form.html inflating: jdk1.6.0_23/db/javadoc/jdbc4/stylesheet.css creating: jdk1.6.0_23/db/lib/ inflating: jdk1.6.0_23/db/lib/derbyclient.jar inflating: jdk1.6.0_23/db/lib/derby.jar inflating: jdk1.6.0_23/db/lib/derby.war inflating: jdk1.6.0_23/db/lib/derbyLocale_cs.jar inflating: jdk1.6.0_23/db/lib/derbyLocale_de_DE.jar inflating: jdk1.6.0_23/db/lib/derbyLocale_es.jar inflating: jdk1.6.0_23/db/lib/derbyLocale_fr.jar inflating: jdk1.6.0_23/db/lib/derbyLocale_hu.jar inflating: jdk1.6.0_23/db/lib/derbyLocale_it.jar inflating: jdk1.6.0_23/db/lib/derbyLocale_ja_JP.jar inflating: jdk1.6.0_23/db/lib/derbyLocale_ko_KR.jar inflating: jdk1.6.0_23/db/lib/derbyLocale_pl.jar inflating: jdk1.6.0_23/db/lib/derbyLocale_pt_BR.jar inflating: jdk1.6.0_23/db/lib/derbyLocale_ru.jar inflating: jdk1.6.0_23/db/lib/derbyLocale_zh_CN.jar inflating: jdk1.6.0_23/db/lib/derbyLocale_zh_TW.jar inflating: jdk1.6.0_23/db/lib/derbynet.jar inflating: jdk1.6.0_23/db/lib/derbyrun.jar inflating: jdk1.6.0_23/db/lib/derbytools.jar inflating: jdk1.6.0_23/db/lib/register.jar inflating: jdk1.6.0_23/db/register.html Creating jdk1.6.0_23/jre/lib/rt.jar Creating jdk1.6.0_23/jre/lib/jsse.jar Creating jdk1.6.0_23/jre/lib/charsets.jar Creating jdk1.6.0_23/lib/tools.jar Creating jdk1.6.0_23/jre/lib/ext/localedata.jar Creating jdk1.6.0_23/jre/lib/plugin.jar Creating jdk1.6.0_23/jre/lib/javaws.jar Creating jdk1.6.0_23/jre/lib/deploy.jar Java(TM) SE Development Kit 6 successfully installed. Product Registration is FREE and includes many benefits: * Notification of new versions, patches, and updates * Special offers on Oracle products, services and training * Access to early releases and documentation Product and system data will be collected. If your configuration supports a browser, the JDK Product Registration form will be presented. If you do not register, none of this information will be saved. You may also register your JDK later by opening the register.html file (located in the JDK installation directory) in a browser. For more information on what data Registration collects and how it is managed and used, see: Press Enter to continue..... y Done. [root@renxing java]# ls jdk1.6.0_23 jdk-6u23-linux-i586.bin [root@renxing java]# ls jdk1.6.0_23 jdk-6u23-linux-i586.bin [root@renxing java]# ls -l ×ÜÓÃÁ¿ 82576 drwxr-xr-x 10 root root 4096 5Ô 2 08:21 jdk1.6.0_23 -rwxr-xr-x 1 root root 84461758 5Ô 2 08:16 jdk-6u23-linux-i586.bin [root@renxing java]# ls -l ×ÜÓÃÁ¿ 82576 drwxr-xr-x 10 root root 4096 5Ô 2 08:21 jdk1.6.0_23 -rwxr-xr-x 1 root root 84461758 5Ô 2 08:16 jdk-6u23-linux-i586.bin [root@renxing java]# ls jdk1.6.0_23 jdk-6u23-linux-i586.bin [root@renxing java]# 相干 体系用户 和 个人用户的题目 -------------------------------------------------------------------- 体系用户 默认是ROOT 假如 /etc/rc.local 文件这么写的话 [user1@renxing root]$ cat /etc/rc.local 注重 在 安装完的linux 中有自带的 java 环境 我们必要卸载 1 检查 jdk rpm -qa | grep jdk rpm -e 相干的rpm 包名 然后对应 下载文件目录文件 在/etc/profile 这个文件开头写上 JAVA_HOME=/usr/java/jdk1.6.0_23 CLASSPATH=$JAVA_HOME/lib PATH=$PATH:$JAVA_HOME/bin 然后测试 java -version javac java 假如出现 版本信息 和 相干说明 说明 你已 有linux 的java 环境了 至于 helloworld 呵呵 你知道 真的没有甚么必要!
淄矿团体的资金预算“分块”治理
sharp xv-z17000A最新评测报告
大众系列故障代码大全
阅读(334) | 评论(0) | 转发(0) |