---
title: "Ubuntu 中安装 Eclipse"
author: "leagion"
date: "2013-07-17T13:44:26Z"
tags: []
categories: ["编程语言"]
slug: "ubuntu-eclipse"
draft: false
lastmod: "2013-07-17T15:55:22Z"
id: 1908347
url: "https://leagion.iteye.com/blog/1908347"
---

b.Then righ-click the eclipse tar.gz and choose the extract here option to extract the tar.gz package.You can also use the command line to extract the tar.gz package.

       

                               # tar xzf eclipse-cpp-juno-linux-gtk.tar.gz

            

        

          c.Move the extracted eclipse in the  /opt/ folder.Before running the below commmand be sure that you are in the directory which contains extracted eclipse folder.

 

                               # mv eclipse /opt/

           

            Use sudo if the above command gives permission denied message.

                                 

                              # sudo mv eclipse /opt/

 

 

       d.Create a desktop file and place it into /usr/share/applications

              

                            # sudo gedit /usr/share/applications/eclipse.desktop            

          
           and copy the following to the eclipse.desktop file

1. ```
   [Desktop Entry]
   Name=Eclipse 
   Type=Application
   Exec=/opt/eclipse/eclipse
   Terminal=false
   Icon=/opt/eclipse/icon.xpm
   Comment=Integrated Development Environment
   NoDisplay=false
   Categories=Development;IDE
   Name[en]=eclipse.desktop
   ```

    
       e. Create a symlink in /usr/local/bin using

1. ```
    # cd /usr/local/bin
    # sudo ln -s /opt/eclipse/eclipse
   ```

      
       f. Now its the time to launch eclipse.  
          
             # /opt/eclipse/eclipse  -clean  &