Ubuntu10.04 history from installation to setup of Java Development Environment

Source: Internet
Author: User

1. Cut out an 80 GB hard drive for Ubuntu. I use lossless partitioning tools and there are many online tools. I am using acronis. disk. Director. Suite.

2. I installed Ubuntu at the cainiao level, so I only divided it into two zones, one swap, one/, I have 6 GB of memory, and four GB of swap, all of which are /.

3. After my laptop is installed, many drivers are directly driven. The video card is OK, the sound card is OK, the network is OK, and Chrome browser and some plug-ins are installed.

4. Install the input method. I installed fcitx4.0.

First put the PPA Source
Deb http://ppa.launchpad.net/wengxt/fcitx-nightly/ubuntu maverick main
The Deb-Src http://ppa.launchpad.net/wengxt/fcitx-nightly/ubuntu maverick main
Add to source list:
Sudo gedit/etc/APT/sources. List
Sudo apt-Get update // update the source Cache
Then start the installation:
Sudo apt-Get install fcitx // Of course, I have uninstalled the built-in ibus, so you do not need to set the default input method. If you do not want to uninstall
// Students can use sudo im-switch-A fcitx to set the default input method. If the input method is ineffective, another method is

// System-> Administration-> language support, In the keyboard input method system One option: fcitx

5. After installing the input method, JDK is installed, go to the Oracle official website to download, I download is jdk-6u34-linux-x64.bin.

First, create the directory where you want to install JDK. I will install JDK in/usr/lib/JVM/Java (use the mkdir password) (RM-RF is used to delete non-empty folders)

After creating the file, move the BIND file to the Java folder and use the MV password.

Next, we started to install the binfile first,Sudo chmod U + x/usr/lib/JVM/Java/jdk1.6.0 _ 34.bin

Then run,Sudo/usr/lib/JVM/Java/jdk1.6.0 _ 12.bin

Text appears until done appears.

Then configure the environment: What I configured is Profile
In /Etc Of Profile Add the last file

Java_home = "/usr/Java/jdk1.6.0 _ 21"

Export java_home

Path = $ java_home/bin: $ path

Export path

Classpath =.: $ java_home/lib/dt. jar: $ java_home/lib/tools. jar: $ classpath

Export classpath

Save close

Ubuntu may have a default JDK. To use the JDK we installed by default, perform the following operations:

Update-alternatives -- install/usr/bin/Java/usr/lib/JVM/Java/jdk1.6.0 _ 34/bin/Java 300 (the front is fixed, the following is the corresponding path of the Java you have installed)

Update-alternatives -- install/usr/bin/javac/usr/lib/JVM/Java/jdk1.6.0 _ 34/bin/javac 300

Add the installed JDK to the Java menu through this step.

Then execute

Update-alternatives -- config Java

In this step, select the default JDK

Java-version

OK!

The rest is the editor and IED, and I like it!

 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.