{"id":3598,"date":"2021-04-11T04:57:29","date_gmt":"2021-04-11T04:57:29","guid":{"rendered":"http:\/\/truelogic.org\/wordpress\/?p=3598"},"modified":"2021-04-11T04:57:32","modified_gmt":"2021-04-11T04:57:32","slug":"installing-eclipse-2021-03-ide-in-ubuntu-18-x","status":"publish","type":"post","link":"https:\/\/truelogic.org\/wordpress\/2021\/04\/11\/installing-eclipse-2021-03-ide-in-ubuntu-18-x\/","title":{"rendered":"Installing Eclipse 2021-03 IDE In Ubuntu 18.x"},"content":{"rendered":"\n<p>The preferred way of installing Eclipse in Ubuntu is to go to the official Eclipse site, download the package and manually install it. The reason being that the official apt repository might not have the latest version in it.<\/p>\n\n\n\n<p>Once you get to https:\/\/www.eclipse.org\/downloads\/ click on the Download button to download the tar.gz file. Assuming that you are already on Ubuntu, the Eclipse website will auto-detect the OS and provide the correct download file<\/p>\n\n\n\n<p>Once the file is downloaded, unzip it into a folder. Preferably create a folder within your <code>~\/Downloads<\/code> folder so that you have complete access to it.<\/p>\n\n\n\n<p>Using the terminal change the current directory to the unzipped folder. eg. <code>~\/Downloads\/eclipse-installer<\/code> and type <code>sudo .\/eclipse-inst<\/code> to start the installer<\/p>\n\n\n\n<p>By default the installer will start in Simple mode. We do not want to use the Simple mode because it puts everything under root. Later on you will not be able to launch Eclipse using your current user name. So click on the hamburger icon on the top right corner of the installer and choose Advanced Mode<\/p>\n\n\n\n<p>In the Product screen, at the bottom of the screen, uncheck Bundle Pool and make sure the Java VM folder is pointing to the correct folder in case you have multiple java versions installed.<\/p>\n\n\n\n<p>Click Next. Click Next again on the Projects screen. In the Variables screen, accept the default folder name or change it if you want. Finally on the Confirmation screen, click Finish.<\/p>\n\n\n\n<p>Once the installer finishes running it will launch the IDE and ask you to choose your default Workspace folder. Thereafter it will complete the launch. At this stage you can close Eclipse.<\/p>\n\n\n\n<p>Basically what we have done, is to make sure that Eclipse runs as the current user and does not put anything in the root folder. We need to create a desktop icon for easy access as the installer does not do this automatically in Ubuntu.<\/p>\n\n\n\n<p>Go to the ~\/Desktop folder and use your favorite editor to create a file <code>eclipse.desktop<\/code> . Put the following contents and save it<\/p>\n\n\n\n<p>[<code>Desktop Entry]<br> Name=Eclipse IDE<br> Type=Application<br> Exec=\/home\/&lt;your-username>\/eclipse\/&lt;jee-path>\/eclipse\/eclipse<br> Terminal=false<br> Icon=\/home\/&lt;your-username>\/eclipse\/&lt;jee-path>\/eclipse\/icon.xpm<br> Comment=Eclipse Integrated Development Environment<br> NoDisplay=false<br> Categories=Development;IDE;<br> Name[en]=Eclipse<\/code><\/p>\n\n\n\n<p>We will give it executable rights with the command:<\/p>\n\n\n\n<p>ch<code>mod +x ~\/Desktop\/eclipse.desktop<\/code><\/p>\n\n\n\n<p>Double clicking on the desktop icon should now launch Eclipse without any problems.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"mh-excerpt\"><p>The preferred way of installing Eclipse in Ubuntu is to go to the official Eclipse site, download the package and manually install it. The reason <a class=\"mh-excerpt-more\" href=\"https:\/\/truelogic.org\/wordpress\/2021\/04\/11\/installing-eclipse-2021-03-ide-in-ubuntu-18-x\/\" title=\"Installing Eclipse 2021-03 IDE In Ubuntu 18.x\">[&#8230;]<\/a><\/p>\n<\/div>","protected":false},"author":1,"featured_media":3601,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[298],"tags":[],"class_list":["post-3598","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/truelogic.org\/wordpress\/wp-json\/wp\/v2\/posts\/3598","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/truelogic.org\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/truelogic.org\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/truelogic.org\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/truelogic.org\/wordpress\/wp-json\/wp\/v2\/comments?post=3598"}],"version-history":[{"count":5,"href":"https:\/\/truelogic.org\/wordpress\/wp-json\/wp\/v2\/posts\/3598\/revisions"}],"predecessor-version":[{"id":3604,"href":"https:\/\/truelogic.org\/wordpress\/wp-json\/wp\/v2\/posts\/3598\/revisions\/3604"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/truelogic.org\/wordpress\/wp-json\/wp\/v2\/media\/3601"}],"wp:attachment":[{"href":"https:\/\/truelogic.org\/wordpress\/wp-json\/wp\/v2\/media?parent=3598"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/truelogic.org\/wordpress\/wp-json\/wp\/v2\/categories?post=3598"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/truelogic.org\/wordpress\/wp-json\/wp\/v2\/tags?post=3598"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}