Manually install JDK6 under Ubuntu

2010-08-31  来源:本站原创  分类:OS  人气:284 

Manually install JDK6 under Ubuntu

First of all, Quguan network to download the latest JDK, http://java.sun.com/javase/downloads/widget/jdk6.jsp

Here to download the jdk-6u20-linux-i586.bin file.

Enter in the terminal

sudo chmod u + x / home/pangwu86/Applications/jdk-6u20-linux-i586.bin

Here you place the files under the path of the location of change, where ME into a personal folder under the Applications folder of them.

This step is to modify file permissions, to facilitate the installation of the next.

Enter in the terminal

sudo ./home/pangwu86/Applications/jdk-6u20-linux-i586.bin

Implementation of the file.

Manually install JDK6 under Ubuntu

And has been hit Enter or space (space to move faster, carriage returns, line by line is, the space is a section).

Finally enter yes, start unpacking.

Manually install JDK6 under Ubuntu

Upon completion, you can be found in the personal folders directory of the JDK.

Manually install JDK6 under Ubuntu

Here is already installed, the next is to configure JDK, so they installed the system to find ME.

But in order to regulate, there needs to be directory jdk1.6.0_20, copy to / usr / lib / jvm under the directory you can see that the system comes with the JDK is stored.

There may be permissions problems, you can not copy the directory jdk1.6.0_20 over here as long as the highest authority to start a file browser, you can copy the.

Enter in the terminal

sudo nautilus

Manually install JDK6 under Ubuntu

The highest authority of the file browser, be used with care! ! ! !

Manually install JDK6 under Ubuntu

Copy over, is to take the case.

Manually install JDK6 under Ubuntu

Next, start the configuration environment.

Open / etc / environment file

Manually install JDK6 under Ubuntu

Add the following section, save.

PATH =".............:/ usr/lib/jvm/jdk1.6.0_20/bin "

CLASSPATH =.: / usr/lib/jvm/jdk1.6.0_20/lib

JAVA_HOME = / usr/lib/jvm/jdk1.6.0_20

Enter in the terminal

source / home/pangwu86/.bashrc

The path here is your personal folder, do not follow the input into pangwu86 Kazakhstan (*^_^*)。

At the moment, the environment variable success.

Next, the system will need to have installed JDK ME default JDK.

Were entered in the terminal

sudo update-alternatives - install / usr / bin / java java / usr/lib/jvm/jdk1.6.0_20/bin/java 300

sudo update-alternatives - install / usr / bin / javac javac / usr/lib/jvm/jdk1.6.0_20/bin/javac 300

sudo update-alternatives - config java

Manually install JDK6 under Ubuntu

Select JDK just packed enough.

Final

Enter in the terminal

java-version

Manually install JDK6 under Ubuntu

Congratulations! ! Your JDK installation succeeded!

相关文章
  • Manually install JDK6 under Ubuntu 2010-08-31

    Manually install JDK6 under Ubuntu First of all, Quguan network to download the latest JDK, http://java.sun.com/javase/downloads/widget/jdk6.jsp Here to download the jdk-6u20-linux-i586.bin file. Enter in the terminal sudo chmod u + x / home/pangwu86

  • Ubuntu manually install the JDK 2010-10-15

    Ubuntu manually install the JDK You can check before installing jdk version, enter the terminal Enter $ java-version, you can see jdk version 1.4 .2. 1. Manually install jdk6 First, http://java.sun.com download jdk-6u12-linux-i586.bin, it is said tha

  • Ubuntu manually install the JDK (rpm) 2011-01-01

    Ubuntu manually install the JDK You can check before installing jdk version, enter the terminal Enter $ java-version, you can see jdk version 1.4 .2. 1. Manually install jdk6 First, http://java.sun.com download jdk-6u12-linux-i586.bin, it is said tha

  • Ubuntu manually install the jdk and the configuration under 2010-05-12

    In ubuntu may be a number of ways to install the jdk, such as the use Adept / Synaptic software manager in the respective search for "sun-java6-jre" and "sun-java6-jdk" and mark it for installation by apt-get command to install (sudo a

  • Manually install the Sun JDK in Ubuntu way 2010-12-29

    Manually install the Sun JDK in Ubuntu way In the latest Ubuntu version, the official source removed sun-java-jdk software, instead recommended open-jdk, so other methods need to manually install sun-java-jdk. View online information, there are basic

  • Manually install the Sun JDK in Ubuntu method 2010-12-29

    Manually install the Sun JDK in Ubuntu method In the latest Ubuntu version, the official source to remove the sun-java-jdk software, instead recommended to use open-jdk, so other methods need to manually install sun-java-jdk. View online information,

  • ubuntu manually install erlang R14B01-person experiment possible error-free 2010-12-14

    erlang R14B01 Synaptic can not install, so you must manually install and personally test, viable, the document is not installed, you can download the document network Quguan Original article by http://deepfuture.javaeye.com 1, the installation curses

  • Ubuntu install jdk6 methods and procedures 2010-11-19

    unbuntu10 default is installed under openjdk, but this jdk more problems because you can not even start Eclipse, they still need to install the jdk. 1 download jdk6 jdk6 download address is: http://download.java.net/jdk6/, select the file dk-6u23-ea-

  • install sunpinyin on ubuntu 2010-02-26

    # Install sunpinyin on ubuntu sudo add-apt-repository ppa: ibus-dev/ibus-1.2-karmic sudo apt-get update sudo apt-get install ibus-sunpinyin

  • Apache manually install the service into Windows 2010-03-19

    The Apache2 Manual installed as Windows services If the installation did not install Apache into a Windows service, then after installation, you can also be achieved through the command line. In <APACHE_HOME> directory bin folder, there Apache.exe f

  • Manually install the service and tomcat tomcat command statement (transfer) 2010-04-16

    Manually install the service and tomcat tomcat command description (Transfer from http://xy-z487.javaeye.com/blog/288926) Recently did a project needs to be co-packaged tomcat and product features for installation, design is to use the packaging tool

  • MyEclipse 6.5 manually install the SVN plugin 2010-06-04

    The steps on how to manually install SVN 1, download SVN plug-in Download http://subclipse.tigris.org/files/documents/906/46495/site-1.6.5.zip 2, MyEclipse 6.5 installation path of plug_in new folder under: site-1.6.5 3, in the MyEclipse 6.5 toolbar,

  • Manually install rails2.2.3 2010-06-12

    A few days ago google query manually install the rails of the method and found that all the older version. So, if you unplug the network cable try a manual installation over said lessons learned now written to share with you. ruby version is 1.8.6-27

  • Install SQLite3 in Ubuntu 2010-07-24

    Install SQLite3 in Ubuntu http://theplana.wordpress.com/2007/05/11/install-sqlite3-on-ubuntu/ 1. Install Sqlite3 sudo apt-get install sqlite3 libsqlite3-dev sudo gem install sqlite3-ruby 2. To create a data base, we only need to create a empty file.

  • linux operating system to achieve pure manually install the MySQL source 2010-08-09

    linux operating system to achieve pure manually install the MySQL source This paper is to introduce a more efficient way to achieve linux operating system source code to pure manually install MySQL, the following specific programs are described, hope

  • Install xdebug in ubuntu 2011-05-27

    Install xdebug in ubuntu * Download xdebug 2.0: http://www.xdebug.org * Extract: tar xzvf xdebug-2.0.0.tgz-C / opt * Install apt-get install php5-dev * Compile and install: cd xdebug-2.0.0 phpize sudo. / configure - enable-xdebug sudo make * Modify t

  • Install tomcat for ubuntu linux almost did not Weighs me! 2011-05-21

    I drop a God! Almost did not install the tomcat ubuntu weighs me! How the case? It should be said is installed, execute the bin / startup.sh, the following screen appears: Using CATALINA_BASE: /home/niewj/app/tomcat Using CATALINA_HOME: /home/niewj/a

  • Install Awstats on Ubuntu 2011-06-21

    Install Awstats on Ubuntu on the methods and processes Install Awstats on Ubuntu graphic tutorials http://www.ossez.com/forum.php?mod=viewthread&tid=13133&fromuid=426

  • How to install GUI on Ubuntu 12.04 (Precise) Se... 2012-12-26

    We have already discussed how to install ubuntu 12.04 LAMP server .If you are a new user and not familiar with command prompt you can install GUI for your ubuntu LAMP server using one of the 2 options 1) Install desktop Environment 2) Install Webmin

  • Ubuntu manually install JDK 2011-02-27

    You can look at before installing jdk version, into the Ubuntu terminal Enter $ java-version, you can see jdk version 1.4 .2. 1 manual installation jdk6 First, at http://java.sun.com download jdk-6u12-linux-i586.bin, it is said that the operation is