Installing Intellij idea on Ubuntu

Source: Internet
Author: User

He installation on Linux are traditionally more complicated.  I wonder why people complain on the low number of Linux desktop users. The IntelliJ idea download page mentions is only a steps:

    1. Unpack the "ideaiu-xx.y.z.tar.gz" file using the command "tar Xfz ideaiu-xx.y.z.tar.gz" and
    2. Run "idea.sh" from the bin subdirectory.

However, this instructions don ' t deliver IntelliJ as delivered and other platforms. People don ' t go to the installation folder and execute the file idea.sh. They either create a desktop icon or add the bin directory to the path, but these steps is missing. So, in my understanding, the installation are not completed. To launch IntelliJ from anywhere in the command prompt:

Become the root User:

Sudo-i

Move the unpacked folder to "/opt/idea":

MV Ideaic-xx.y.z/opt/idea

Edit the file. BASHRC:

Gedit ~/.BASHRC

Add the following line to the end of the file:

Export Path=/opt/idea/bin: $PATH

Log out and log in to the change take effect.

To add the launcher icon on the desktop, there are a soft and a hard-to-do.

The Soft

Fortunately, IntelliJ can help you once your run it for the first time. In the Welcome window, select "Configure":

And then select "Create Desktop Entry".

That ' s it!

The hard

As a good Linux user, prefer doing it the hard, as follows:

Create a Desktop file:

Cd/opt/ideagedit Idea.desktop    

Copy the content bellow to the file:

      [Desktop Entry]      Name=intellij idea       type=application      exec=idea.sh      terminal=false      Icon=idea      comment= Integrated development Environment      Nodisplay=false      categories=development;ide;      Name[en]=intellij idea

Install the Desktop file:

Desktop-file-install Idea.desktop

Create a symlink:

Cd/usr/local/binln-s/opt/idea/bin/idea.sh/usr/local/bin/idea.sh

Finally, display the idea icon in dash:

Cp/opt/idea/bin/idea.png/usr/share/pixmaps/idea.png

At this point, you'll finally feel IntelliJ as an application, integrated with the desktop and all ready to be execut Ed.

Installing Intellij idea on Ubuntu

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.