Install the jdk1.6.30 and aptanastudio3 development environments in ubuntu11.10

Source: Internet
Author: User

1. Download JDK. My current version is

Jdk-6u30-linux-x64.bin

 

2. Enter the command line after the download

$ CD/JDK downloaded folder

 

3. Create a directory

$ Sudo mkdir/usr/lib/JDK

 

4. Move files

$ Sudo MV jdk-6u30-linux-x64.bin/usr/lib/JDK

 

5 Installation 

$ Sudo./jdk-6u30-linux-x64.bin/usr/lib/JDK

 

6. Modify the environment variables (note that the following paths are written according to the actual installation path)

Mainly path, classpath, and java_home. Note the bin directory added at the end of path:
$ Sudo gedit/etc/environment
Path = "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games: /usr/lib/JDK/jdk1.6.0 _ 30/bin"
Classpath = "/usr/lib/JDK/jdk1.6.0 _ 30/lib"

Java_home = "/usr/lib/JDK/jdk1.6.0 _ 30"

Then we want to tell the system that we are using sun's JDK, instead of openjdk:
$ Sudo Update-alternatives -- install/usr/bin/Java/usr/lib/JDK/jdk1.6.0 _ 30/bin/Java 300
$ Sudo Update-alternatives -- install/usr/bin/javac/usr/lib/JDK/jdk1.6.0 _ 30/bin/javac 300

 

 

7. Verification

$ Sudo Java-version

 

Install aptanastudio3:

Go to the official website to download a Linux versionAptanastudio3Decompress the package. ObtainAptanastudio3Folder (space may exist, it is best to rename and remove space)

Enter the download directory through the command line.

$ Sudo MV aptanastudio3/usr/opt/

After moving, you can start aptanastudio3 directly in/usr/opt/aptanastudio3.

However, for ease of work, you need to place shortcuts on the desktop or startup bar. The following actions are required:

1. Click the system button next to the user name in the upper-right corner of the desktop (where the switch is enabled)

2. Select "Start application"

3. Select "add" in the startup preferences"

4. The add Startup Program dialog box is displayed as before.

5. After the name and command (PATH) are set, click "add" to add the starter to the list, after the system is started, it runs on its own)

6. Select the new starter and drag it to the desktop.

7. Right-click the new starter and select Properties. On the permission tab, select -- run: Allow program execution files

8. Click the icon on the basic tab to set the desktop icon of the starter.

If you want to drag the starter to the left-side menu bar without affecting the desktop, move the starter to/usr/share/applications. After you double-click it, you can fix it in the startup bar. No need to place on the desktop

Localization

Click "help"> "install new software ";

In the displayed "Install" window, enter the following URL in the "Work with" input box:

Http://archive.eclipse.org/technology/babel/update-site/R0.8.1/helios

Then, click the "add" button, and the Language Pack list will appear in the body. Select Simplified Chinese, and then everyone will know, all the way to "Next" until "finish ";

When the "Install" window is closed, Aptana 3 will automatically download and install the Language Pack. After the installation is complete, it will prompt you to restart Aptana. At this point, your Aptana 3 is a lovely Chinese version.

 

 

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.