Wednesday, January 16, 2013

Meng-Install Eclipse Juno di Ubuntu 12.04 atau 12.10


Installing Eclipse Juno 4.2 in Ubuntu 12.04 or in Ubuntu 12.10

Sumber :  http://akovid.blogspot.fr/

--------- 

There are two ways of installing eclipse IDE in ubuntu.
  1. Using Ubuntu Software Center or
  2. Download  Eclipse IDE package and then install manually

Using Ubuntu Software Center for installing eclipse,new version of eclipse is not available.


The above version is 3.7.2-1.However newer version 4.2 juno is available here.



NOTE:  Before installing eclipse IDE you need to check few things.

First, whether you have Java installed or not.For that you need to run following command in your terminal...


                                    # java -version

If you get the following output that means Java is not installed on your Ubuntu12.04.You need to  install Sun JDK or Open JDK using Ubuntu Software Center.

and if you get the following output that means you have java installed in your OS.

Second, if you are installing Eclipse IDE for C/C++,you need to check whether g++ is installed or not.
To check whether g++ is installed or not you need to run the following command in the terminal...
                                                 # g++ --version

If you get the following output that means g++ is already installed else you need to install it using Ubuntu Software Center.




By manually downloading the eclipse IDE package.
         
  • First download the eclipse tar.gz package from here
  • 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
            
  • 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/

  • 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
[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
  • Create a symlink in /usr/local/bin using
        # cd /usr/local/bin
        # sudo ln -s /opt/eclipse/eclipse

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



Artikel Terkait

0 comments: