You know,If you want to develop java applications ,you’d better install jdk.

Now I will introduce you how to intall jdk1.6 on Ubuntu.

Follow me!

One

You should download jdk file from sun offcial website,
URL: http://www.oracle.com/technetwork/java/javase/downloads/jdk-6u29-download-513648.html (fixed)

fileName : jdk-6u29-linux-i586.bin
Tips:

1)Before you will download this file ,you should accept license agreement.

2)If your system is Ubuntu10.4 or other 32-bit system,you can’t download the jdk-6u29-linux-x64.bin.When you use sudo sh jdk-6u29-linux-x64.bin,it will create a file that file’s name is invalid encoding.

Two
After file is donwloaded,we also can use command:ls to scan the file list.

Three
OK,now we can install jdk,write command : sudo sh jdk-6u29-linux-i586.bin

A few miniutes later,you will be asked to press Enter key,Just do, You will see ‘Done’.
Ok,Now jdk has been instaled by us,next step we will config environment variables for java

Four
Enter the command : sudo gedit /etc/environment

if you are similar with vim,you can use the command : sudo vi /etc/environment

Add the following lines in the end of file.

export JAVA_HOME=/home/alicus/Downloads/jdk1.6.0_29
    export JRE_Home=>/home/alicus/Downloads/jdk1.6.0_29/jre
    export CLASSPATH=$CLASSPATH:$JAVA_HOME/lib:$JRE_HOME/lib

then enter command : source ~/.bashrc,it makes the changes effective.

Five
You should know Ubuntu10.4 make the openjdk as its default jdk ,so we should make sun jdk to be
the default one,just use following commands :

sudo update-alternatives –install /usr/bin/java java /home/alicus/Downloads/jdk1.6.0_29/bin/java 300
    sudo update-alternatives –install /usr/bin/java java /home/alicus/Downloads/jdk1.6.0_29/bin/javac 300

use following command to scan the jdk priority:

sudo update-alternatives –config java

Tips: sudo update-alternatives — install is used to change the priority.

OK!Now you can enter command: java -version to test if jdk is ok.

If you can see java version “1.6.0_29″--Congratulations!

Ubuntu10.4 install jdk1.6的更多相关文章

  1. ubuntu10.10手工安装jdk1.6

    声明:以下操作是在root用户下操作. 一.下载JDK首先,在Oracle的官网上下载JDK.http://www.oracle.com/technetwork/java/javase/downloa ...

  2. Ubuntu10.4 Install DB2V9.5

    1. Download the DB2V9.5 Software from URL:  http://www14.software.ibm.com/webapp/download/search.jsp ...

  3. Java 6 JVM参数选项大全(中文版)

    原文来自: http://kenwublog.com/docs/java6-jvm-options-chinese-edition.htm 本文是基于最新的SUN官方文档Java SE 6 Hotsp ...

  4. Linux下Hadoop2.6.0集群环境的搭建

    本文旨在提供最基本的,可以用于在生产环境进行Hadoop.HDFS分布式环境的搭建,对自己是个总结和整理,也能方便新人学习使用. 基础环境 JDK的安装与配置 现在直接到Oracle官网(http:/ ...

  5. 事故记录-过多进程致使CPU卡死

    早上到公司,发现邮箱内有报警信息显示CPU和IO使用都已超标.报警内容如下:主机: test-server-192.168.1.18 时间: 2015.11.15 15:25:17状态: PROBLE ...

  6. 深入理解JVM—Java 6 JVM参数配置说明

    原文地址:http://yhjhappy234.blog.163.com/blog/static/316328322011119111014657/ 使用说明< xmlnamespace pre ...

  7. Ubuntu 12.04搭建Andorid编译环境

    1.安装JDK,Android 5.0开始,开始使用OpenJDK 1.7,4.4等低版本是Oracke JDK1.6 install java environment // install open ...

  8. Spark的几种运行模式

    1.local单机模式,结果xshell可见:./bin/spark-submit --class org.apache.spark.examples.SparkPi --master local[1 ...

  9. HDFS之HBase伪分布安装

    1.HBase简介 HBase是Apache Hadoop中的一个子项目,Hbase依托于Hadoop的HDFS作为最基本存储基础单元,通过使用hadoop的DFS工具就可以看到这些这些数据 存储文件 ...

随机推荐

  1. iOS Dev (21) 用 AVPlayer 播放一个本地音频文件

    iOS Dev (21) 用 AVPlayer 播放一个本地音频文件 作者:CSDN 大锐哥 博客:http://blog.csdn.net/prevention 前言 这篇文章与上一篇极其相似,要注 ...

  2. python-整理-面向对象

    python的类和perl的类有相似之处,类的方法的第一个参数是表示类的对象自己,相当于c#的this python中定义类 class person: ''示例类,人'' count=0; def ...

  3. Oracle EBS-SQL (INV-12):检查待定事物处理1.sql

    /*未加工物料*/ update inv.mtl_material_transactions_temp set process_flag='Y', LOCK_FLAG='N', TRANSACTION ...

  4. 电子科大POJ "整数的千位分隔"

    整数的千位分隔 Time Limit: 3000/1000MS (Java/Others)     Memory Limit: 65535/65535KB (Java/Others) C-source ...

  5. POJ 3368 RMQ-ST

    一直感觉RMQ水,没自己写过,今天写了一道题,算是完全独立写的,这感觉好久没有了... 一直以来,都是为了亚洲赛学算法,出现了几个问题: 1.学的其实只是怎么用算法,对算法的正确性没有好好理解,或者说 ...

  6. [C++ 2011 STL (VS2012 Update4) 源代码阅读系列(2)]熟悉一些宏定义和模版偏特化或叫模版专门化

    [C++ 2011 STL (VS2012 Update4) 源代码阅读系列(2)]熟悉一些宏定义和模版偏特化或叫模版专门化 // point_test.cpp : 知识点练习和测试,用于单步调试,跟 ...

  7. OC基础2:一些基本概念

    "OC基础"这个分类的文章是我在自学Stephen G.Kochan的<Objective-C程序设计第6版>过程中的笔记. 1.字符常量是存放在单引号中的单个字符,字 ...

  8. C++暂时对象

    C++真正所谓的暂时对象是不可见的--不会在你的源码中出现.仅仅要你产生一个non-heap object而没有为它命名,便诞生了一个暂时对象.此等匿名对象通常发生于两种情况: 一是当隐式类型转换(i ...

  9. How debuggers work

    做了一个PPT用来和组内的同学交流一下.内容很简单,写得也很简单. 谁知道博客园文章里怎么直接嵌入PPT呢? link: http://www.slideshare.net/ssuserdc412f/ ...

  10. 性能强悍的开源关系数据库PostgreSQL

    性能强悍的开源关系数据库PostgreSQL