{"id":3353,"date":"2018-11-13T16:34:31","date_gmt":"2018-11-13T16:34:31","guid":{"rendered":"https:\/\/www.appservgrid.com\/paw92\/?p=3353"},"modified":"2018-11-17T14:16:11","modified_gmt":"2018-11-17T14:16:11","slug":"install-eclipse-on-ubuntu-using-command-line","status":"publish","type":"post","link":"https:\/\/www.appservgrid.com\/paw92\/index.php\/2018\/11\/13\/install-eclipse-on-ubuntu-using-command-line\/","title":{"rendered":"Install Eclipse on Ubuntu Using Command Line"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/linoxide.com\/wp-content\/uploads\/2018\/11\/Install-eclipse-oxygen-ubuntu.png\" alt=\"Install eclipse oxygen ubuntu\" width=\"713\" height=\"341\" \/><\/p>\n<p>Eclipse is a free integrated development environment IDE which is used by programmers around to write software mostly in Java but also in other major programming languages via Eclipse plugins.<\/p>\n<p>Eclipse is not only good at developing applications but you can use its collection of tools to easily enhance your Eclipse desktop IDE, including GUI builders and tools for modeling, charting, reporting testing, and more.<\/p>\n<p>To install Eclipse on Ubuntu, follow the steps below:<\/p>\n<p>Eclipse requires Java JDK to be installed on the system you want to use. At this time, only Java JDK 8 is fully compatible.. to install JDK, use the steps below:<\/p>\n<p>The easiest way to install Oracle Java JDK 8 on Ubuntu is via a third-party PPA. To add that PPA, run the commands below<\/p>\n<p>sudo add-apt-repository ppa:webupd8team\/java<\/p>\n<p>After running the commands above, you should see a prompt to accept the PPA key onto Ubuntu. accept and continue<\/p>\n<p>Now that the <a href=\"https:\/\/linoxide.com\/ubuntu-how-to\/remove-add-ppa-ubuntu\/\" target=\"_blank\" rel=\"noopener\">PPA repository has been added<\/a> to Ubuntu, run the commands below to download Oracle Java 9 installer. the installer should install the latest Java JDK 9 on your Ubuntu machines.<\/p>\n<p>sudo apt update<br \/>\nsudo apt install oracle-java8-installer<\/p>\n<p>When you run the commands above you\u2019ll be prompted to access the license terms of the software. accept and continue.<br \/>\n<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/linoxide.com\/wp-content\/uploads\/2018\/10\/oracle_java_9-300x127.png\" alt=\"\" width=\"428\" height=\"181\" \/><br \/>\nSet Oracle JDK8 as default, to do that, install the Oracle-java8-set-default package. This will automatically set the JAVA env variable.<\/p>\n<p>sudo apt install oracle-java8-set-default<\/p>\n<p>The command above will automatically set Java 9 as the default\u2026 and that should complete your installation, you can check your java version by running following command.<\/p>\n<p>javac -version<\/p>\n<p>Now that Java JDK 8 is installed, got and download Eclipse Oxygen IDE package for your systems. the link below can be used to get it.<\/p>\n<p><a href=\"https:\/\/www.eclipse.org\/downloads\/\" target=\"_blank\" rel=\"noopener\">Download Eclipse<\/a><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/linoxide.com\/wp-content\/uploads\/2018\/10\/ubuntu_ecilpse_install-300x133.png\" alt=\"\" width=\"490\" height=\"217\" \/><br \/>\nExtract the downloaded package to the directory\/opt using the commands below. by default Eclipse package should be downloaded into the folder~\/Downloads of your home directory.<\/p>\n<p>Use the commands below to extract the content in the ~\/Downloads folder. The next line launches the installer\u2026<\/p>\n<p>tar xfz ~\/Downloads\/eclipse-inst-linux64.tar.gz<br \/>\n~\/Downloads\/eclipse-installer\/eclipse-inst<\/p>\n<p>Select the package IDE you want to install and continu.<br \/>\n<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/linoxide.com\/wp-content\/uploads\/2018\/10\/ubuntu_ecilpse_install_6-292x300.png\" alt=\"\" width=\"438\" height=\"450\" \/><br \/>\nUse the onscreen instructions to complete the installer. Accept the default installation directory and continue.<br \/>\n<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/linoxide.com\/wp-content\/uploads\/2018\/10\/ubuntu_ecilpse_install_1-291x300.png\" alt=\"\" width=\"392\" height=\"404\" \/><br \/>\nNext, accept the license terms and continue. wait for Eclipse installer to download and install all the packages.<br \/>\n<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/linoxide.com\/wp-content\/uploads\/2018\/10\/ubuntu_ecilpse_install_2-300x180.png\" alt=\"\" width=\"570\" height=\"342\" \/><br \/>\nAfter downloading the installer should complete. all you have to do is launch the program.<br \/>\n<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/linoxide.com\/wp-content\/uploads\/2018\/10\/ubuntu_ecilpse_install_3-290x300.png\" alt=\"\" width=\"437\" height=\"453\" \/><\/p>\n<p>Now that Eclipse is downloaded and installed, create a launcher for the application. to do that, run the commands below.<\/p>\n<p>nano .local\/share\/applications\/eclipse.desktop<\/p>\n<p>Next, copy and paste the content below into the file and save.<\/p>\n<p>[Desktop Entry]<br \/>\nName=Eclipse JEE Oxygen<br \/>\nType=Application<br \/>\nExec=\/home\/smart\/eclipse\/jee-oxygen\/eclipse\/eclipse<br \/>\nTerminal=false<br \/>\nIcon=\/home\/smart\/eclipse\/jee-oxygen\/eclipse\/icon.xpm<br \/>\nComment=Integrated Development Environment<br \/>\nNoDisplay=false<br \/>\nCategories=Development;IDE;<br \/>\nName[en]=Eclipse<\/p>\n<p>Replace the highlighted username (smart) with your own account name. also, the Exec = location and icon.xpm should depend on where Eclipse got installed on your system.<\/p>\n<p>Save the file and exit.<\/p>\n<p>You should then have a launcher for Eclipse JEE Oxygen. open Dash or the activities overview and search for Eclipse and then launch.<\/p>\n<p>To create additional IDEs, you must repeat step 3 by launching the installer again and created an application launcher for that IDE.<\/p>\n<p>When the app launches, you should be able to configure it for your environment.<\/p>\n<h3>Read Also:<\/h3>\n<ul>\n<li><a href=\"https:\/\/linoxide.com\/linux-how-to\/install-java-ubuntu\/\" target=\"_blank\" rel=\"noopener\">How to Install Java 8 on Ubuntu 18.04<\/a><\/li>\n<\/ul>\n<p><a href=\"https:\/\/linoxide.com\/linux-how-to\/learn-how-install-latest-eclipse-ubuntu\/\" target=\"_blank\" rel=\"noopener\">Source<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Eclipse is a free integrated development environment IDE which is used by programmers around to write software mostly in Java but also in other major programming languages via Eclipse plugins. Eclipse is not only good at developing applications but you can use its collection of tools to easily enhance your Eclipse desktop IDE, including GUI &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.appservgrid.com\/paw92\/index.php\/2018\/11\/13\/install-eclipse-on-ubuntu-using-command-line\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Install Eclipse on Ubuntu Using Command Line&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-3353","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/3353","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/comments?post=3353"}],"version-history":[{"count":1,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/3353\/revisions"}],"predecessor-version":[{"id":3597,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/3353\/revisions\/3597"}],"wp:attachment":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/media?parent=3353"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/categories?post=3353"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/tags?post=3353"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}