Jump to content

Pemrograman Mobile: Installasi Eclips

From Wiki

Tujuan Informasi Khusus:

  • Mahasiswa mampu instalasi awal Android Development Tools yang digunakan sebagai media desain dan pemrograman pada android.

Installasi

Windows

  • Download JDK, kunjungi link download Java SE Development Kit (JDK).
  • Selanjutnya ADT BUNDLE, kunjungi link download Software Development Kit (SDK) atau https://developer.android.com/studio/releases/platform-tools.
  • Setelah semua file di download pertama Ekstract ADT Bundle.
  • ADT Bundle berisi SDK dan Eclips, yang nanti dikonfigurasikan agar eclipse dapat digunakan sebagai pengembang Android. Buka Eclipse.exe pada folder android.
  • Setelah terbuka, konfigurasikan SDK pada menu WINDOW > Preference
  • SDK location sesuaikan dengan folder SDK yang telah di extract sebelumnya, kemudian OK dan restart Eclipse.
  • Setelah SDK terpasang, langkah selanjutnya adalah membuat Emulator atau AVD (Android Virtual Device).
  • Pilih menu windows – Android SDK and AVD Manager. Setelah keluar windows Android SDK and AVD manager pilih New, lalu isikan data seperti gambar dibawah ini.
  • Setelah emulator android berhasil dibuat, maka langkah selanjutnya adalah mengetes emulator android tersebut apakah berjalan dengan baik atau tidak dengan cara, pilih menuwindows - – Android SDK and AVD Manager. Pilih Virtual Devices. Lalu pilih emulator android yang kita buat tadi, lalu klik Star.

Ubuntu

Eclipse is one such IDE that is primarily used for Java development. It can also be used with other languages, such as — C++, PHP, etc. Other languages support can be added on top of an existing installation or they can be installed as separate Eclipse packages.

You can use other modern open-source code editors for programming but if you ask me, I’ll always vote for Eclipse. And so, today we are going see how we can install the latest version of Eclipse on Ubuntu.

Installing the latest Eclipse on Ubuntu Linux

The apt package manager provides an old version of Eclipse in Ubuntu. This is why I won’t recommend using sudo apt install eclipse.

Eclipse doesn’t provide an official PPA or an easy way to install the latest version of it on Ubuntu. However, we shall mention two easy methods you can follow to easily install Eclipse on Ubuntu or any other Linux distro.

Method 1: Installing Eclipse using Snap (Easy)

You can install the snap package available for Linux. You can either install it from the terminal or the software center in Ubuntu.

Open the Software Center application in Ubuntu and search for Eclipse and install it from there.

We also have a guide on using snap packages if you are not sure about the support for snap packages for your Linux distributions.

If you proceed to install it via the terminal, here’s what you have to type in:

sudo snap install eclipse --classic

Method 2: Installing Eclipse from the official package (Slightly Complicated)

Method 2: Installing Eclipse from the official package (Slightly Complicated)

Make sure you don’t confuse “package” with the installer available. You can find the latest package for Eclipse here.

It is also worth noting that we assume the directory ‘Downloads’ as your default storage path to save the Eclipse package downloaded. If you have a different path, replace the file path from our set of steps.

So, once you have downloaded the package for Linux, simply follow the steps mentioned below to complete the installation:

  • Launch the terminal and enter the following command:
cd /opt


  • Next, you have to extract the downloaded package to this directory by entering the following command:
sudo tar -xvzf ~/Downloads/eclipse-jee-2019-09-R-linux-gtk-x86_64.tar.gz


  • Now after extracting the files, we have to make a menu entry (so that when you search for Eclipse, an icon will come up in the app drawer). Here’s what to enter next:
sudo gedit eclipse.desktop

Basically, we are making the file for the shortcut icon here. Next, we need to set up the shortcut to launch Eclipse. So, when the text editor opens, enter the following information and save it (copy-paste what’s written below): Basically, we are making the file for the shortcut icon here. Next, we need to set up the shortcut to launch Eclipse. So, when the text editor opens, enter the following information and save it (copy-paste what’s written below):

[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
Name[en_US]=Eclipse

Basically, we are making the file for the shortcut icon here. Next, we need to set up the shortcut to launch Eclipse. So, when the text editor opens, enter the following information and save it (copy-paste what’s written below):

  • Close the text editor and enter the following command to enable the shortcut icon:
sudo desktop-file-install eclipse.desktop

And, that’s it!

Terkait

Source