How to add Eclipse to Favorites?





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}







5















I installed the latest version of Eclipse onto Ubuntu 18.04 with the official installer from the Eclipse website, however I can't get it to appear on my favorites bar/dock.



I have tried dragging the executable file to the dock, but it doesn't work.



I can't find it with the "show applications" button. I can only run it by clicking on its executable file.



How can I get Eclipse to appear on the favorites bar/dock?



The .desktop file:



[Desktop Entry]
Comment=Eclipse
Terminal=false
Name=Eclipse
Exec=eclipse --profile-directory=/home/myName/eclipse/java-2018-09/eclipse
Type=Application
Icon=eclipse


This isn't a duplicate of this question because the same process doesn't work. Changing the text file to an executable doesn't work.










share|improve this question































    5















    I installed the latest version of Eclipse onto Ubuntu 18.04 with the official installer from the Eclipse website, however I can't get it to appear on my favorites bar/dock.



    I have tried dragging the executable file to the dock, but it doesn't work.



    I can't find it with the "show applications" button. I can only run it by clicking on its executable file.



    How can I get Eclipse to appear on the favorites bar/dock?



    The .desktop file:



    [Desktop Entry]
    Comment=Eclipse
    Terminal=false
    Name=Eclipse
    Exec=eclipse --profile-directory=/home/myName/eclipse/java-2018-09/eclipse
    Type=Application
    Icon=eclipse


    This isn't a duplicate of this question because the same process doesn't work. Changing the text file to an executable doesn't work.










    share|improve this question



























      5












      5








      5


      2






      I installed the latest version of Eclipse onto Ubuntu 18.04 with the official installer from the Eclipse website, however I can't get it to appear on my favorites bar/dock.



      I have tried dragging the executable file to the dock, but it doesn't work.



      I can't find it with the "show applications" button. I can only run it by clicking on its executable file.



      How can I get Eclipse to appear on the favorites bar/dock?



      The .desktop file:



      [Desktop Entry]
      Comment=Eclipse
      Terminal=false
      Name=Eclipse
      Exec=eclipse --profile-directory=/home/myName/eclipse/java-2018-09/eclipse
      Type=Application
      Icon=eclipse


      This isn't a duplicate of this question because the same process doesn't work. Changing the text file to an executable doesn't work.










      share|improve this question
















      I installed the latest version of Eclipse onto Ubuntu 18.04 with the official installer from the Eclipse website, however I can't get it to appear on my favorites bar/dock.



      I have tried dragging the executable file to the dock, but it doesn't work.



      I can't find it with the "show applications" button. I can only run it by clicking on its executable file.



      How can I get Eclipse to appear on the favorites bar/dock?



      The .desktop file:



      [Desktop Entry]
      Comment=Eclipse
      Terminal=false
      Name=Eclipse
      Exec=eclipse --profile-directory=/home/myName/eclipse/java-2018-09/eclipse
      Type=Application
      Icon=eclipse


      This isn't a duplicate of this question because the same process doesn't work. Changing the text file to an executable doesn't work.







      18.04 java eclipse ubuntu-dock dock






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Oct 9 '18 at 17:02







      LuminousNutria

















      asked Oct 9 '18 at 15:46









      LuminousNutriaLuminousNutria

      195114




      195114






















          2 Answers
          2






          active

          oldest

          votes


















          5














          I merged this answer, OP's answer and my own experience for this complete and very simple guide for anyone who came to this question without any prior knowledge about .desktop files etc (like me):




          1. Create a file called .desktop in ~/.local/share/applications (e.g. with the command nano ~/.local/share/applications/.desktop)



          2. Add these lines:



            [Desktop Entry]
            Comment=Eclipse
            Terminal=false
            Name=Eclipse
            Exec=/path/to/your/version/eclipse/eclipse
            Type=Application
            Icon=/path/to/your/version/eclipse/icon.xpm


            Note that 'Exec' should point to your eclipse executable, not the containing folder which is also named 'eclipse' usually. Check if the icon file is present and if necessary adapt its path. Save the file.



          3. Make the .desktop file executable by running chmod a+x ~/.local/share/applications/.desktop.


          4. Click on 'Show Applications' (the dot logo on the bottom left of the screen) and in the search bar enter 'Eclipse'. It should appear.


          5. Right click on the Icon and choose 'Add to favorites'.







          share|improve this answer





















          • 3





            Thanks- this helped me as well but a couple of things. You don't need (and you shouldn't use) sudo to create the .desktop and make it executable. To make .desktop executable by everyone I think the right command is chmod a+x ~/.local/share/applications/.desktop.

            – dariober
            Feb 23 at 11:11



















          1














          First the problem with the .desktop launcher was fixed by changing the Exec line to



          Exec=/home/myName/eclipse/java-2018-09/eclipse/eclipse


          Then "added to favorites" following this.






          share|improve this answer


























            Your Answer








            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "89"
            };
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function() {
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled) {
            StackExchange.using("snippets", function() {
            createEditor();
            });
            }
            else {
            createEditor();
            }
            });

            function createEditor() {
            StackExchange.prepareEditor({
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            imageUploader: {
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            },
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            });


            }
            });














            draft saved

            draft discarded


















            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1082340%2fhow-to-add-eclipse-to-favorites%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            2 Answers
            2






            active

            oldest

            votes








            2 Answers
            2






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            5














            I merged this answer, OP's answer and my own experience for this complete and very simple guide for anyone who came to this question without any prior knowledge about .desktop files etc (like me):




            1. Create a file called .desktop in ~/.local/share/applications (e.g. with the command nano ~/.local/share/applications/.desktop)



            2. Add these lines:



              [Desktop Entry]
              Comment=Eclipse
              Terminal=false
              Name=Eclipse
              Exec=/path/to/your/version/eclipse/eclipse
              Type=Application
              Icon=/path/to/your/version/eclipse/icon.xpm


              Note that 'Exec' should point to your eclipse executable, not the containing folder which is also named 'eclipse' usually. Check if the icon file is present and if necessary adapt its path. Save the file.



            3. Make the .desktop file executable by running chmod a+x ~/.local/share/applications/.desktop.


            4. Click on 'Show Applications' (the dot logo on the bottom left of the screen) and in the search bar enter 'Eclipse'. It should appear.


            5. Right click on the Icon and choose 'Add to favorites'.







            share|improve this answer





















            • 3





              Thanks- this helped me as well but a couple of things. You don't need (and you shouldn't use) sudo to create the .desktop and make it executable. To make .desktop executable by everyone I think the right command is chmod a+x ~/.local/share/applications/.desktop.

              – dariober
              Feb 23 at 11:11
















            5














            I merged this answer, OP's answer and my own experience for this complete and very simple guide for anyone who came to this question without any prior knowledge about .desktop files etc (like me):




            1. Create a file called .desktop in ~/.local/share/applications (e.g. with the command nano ~/.local/share/applications/.desktop)



            2. Add these lines:



              [Desktop Entry]
              Comment=Eclipse
              Terminal=false
              Name=Eclipse
              Exec=/path/to/your/version/eclipse/eclipse
              Type=Application
              Icon=/path/to/your/version/eclipse/icon.xpm


              Note that 'Exec' should point to your eclipse executable, not the containing folder which is also named 'eclipse' usually. Check if the icon file is present and if necessary adapt its path. Save the file.



            3. Make the .desktop file executable by running chmod a+x ~/.local/share/applications/.desktop.


            4. Click on 'Show Applications' (the dot logo on the bottom left of the screen) and in the search bar enter 'Eclipse'. It should appear.


            5. Right click on the Icon and choose 'Add to favorites'.







            share|improve this answer





















            • 3





              Thanks- this helped me as well but a couple of things. You don't need (and you shouldn't use) sudo to create the .desktop and make it executable. To make .desktop executable by everyone I think the right command is chmod a+x ~/.local/share/applications/.desktop.

              – dariober
              Feb 23 at 11:11














            5












            5








            5







            I merged this answer, OP's answer and my own experience for this complete and very simple guide for anyone who came to this question without any prior knowledge about .desktop files etc (like me):




            1. Create a file called .desktop in ~/.local/share/applications (e.g. with the command nano ~/.local/share/applications/.desktop)



            2. Add these lines:



              [Desktop Entry]
              Comment=Eclipse
              Terminal=false
              Name=Eclipse
              Exec=/path/to/your/version/eclipse/eclipse
              Type=Application
              Icon=/path/to/your/version/eclipse/icon.xpm


              Note that 'Exec' should point to your eclipse executable, not the containing folder which is also named 'eclipse' usually. Check if the icon file is present and if necessary adapt its path. Save the file.



            3. Make the .desktop file executable by running chmod a+x ~/.local/share/applications/.desktop.


            4. Click on 'Show Applications' (the dot logo on the bottom left of the screen) and in the search bar enter 'Eclipse'. It should appear.


            5. Right click on the Icon and choose 'Add to favorites'.







            share|improve this answer















            I merged this answer, OP's answer and my own experience for this complete and very simple guide for anyone who came to this question without any prior knowledge about .desktop files etc (like me):




            1. Create a file called .desktop in ~/.local/share/applications (e.g. with the command nano ~/.local/share/applications/.desktop)



            2. Add these lines:



              [Desktop Entry]
              Comment=Eclipse
              Terminal=false
              Name=Eclipse
              Exec=/path/to/your/version/eclipse/eclipse
              Type=Application
              Icon=/path/to/your/version/eclipse/icon.xpm


              Note that 'Exec' should point to your eclipse executable, not the containing folder which is also named 'eclipse' usually. Check if the icon file is present and if necessary adapt its path. Save the file.



            3. Make the .desktop file executable by running chmod a+x ~/.local/share/applications/.desktop.


            4. Click on 'Show Applications' (the dot logo on the bottom left of the screen) and in the search bar enter 'Eclipse'. It should appear.


            5. Right click on the Icon and choose 'Add to favorites'.








            share|improve this answer














            share|improve this answer



            share|improve this answer








            edited Feb 25 at 9:17

























            answered Feb 22 at 9:42









            smcssmcs

            19218




            19218








            • 3





              Thanks- this helped me as well but a couple of things. You don't need (and you shouldn't use) sudo to create the .desktop and make it executable. To make .desktop executable by everyone I think the right command is chmod a+x ~/.local/share/applications/.desktop.

              – dariober
              Feb 23 at 11:11














            • 3





              Thanks- this helped me as well but a couple of things. You don't need (and you shouldn't use) sudo to create the .desktop and make it executable. To make .desktop executable by everyone I think the right command is chmod a+x ~/.local/share/applications/.desktop.

              – dariober
              Feb 23 at 11:11








            3




            3





            Thanks- this helped me as well but a couple of things. You don't need (and you shouldn't use) sudo to create the .desktop and make it executable. To make .desktop executable by everyone I think the right command is chmod a+x ~/.local/share/applications/.desktop.

            – dariober
            Feb 23 at 11:11





            Thanks- this helped me as well but a couple of things. You don't need (and you shouldn't use) sudo to create the .desktop and make it executable. To make .desktop executable by everyone I think the right command is chmod a+x ~/.local/share/applications/.desktop.

            – dariober
            Feb 23 at 11:11













            1














            First the problem with the .desktop launcher was fixed by changing the Exec line to



            Exec=/home/myName/eclipse/java-2018-09/eclipse/eclipse


            Then "added to favorites" following this.






            share|improve this answer






























              1














              First the problem with the .desktop launcher was fixed by changing the Exec line to



              Exec=/home/myName/eclipse/java-2018-09/eclipse/eclipse


              Then "added to favorites" following this.






              share|improve this answer




























                1












                1








                1







                First the problem with the .desktop launcher was fixed by changing the Exec line to



                Exec=/home/myName/eclipse/java-2018-09/eclipse/eclipse


                Then "added to favorites" following this.






                share|improve this answer















                First the problem with the .desktop launcher was fixed by changing the Exec line to



                Exec=/home/myName/eclipse/java-2018-09/eclipse/eclipse


                Then "added to favorites" following this.







                share|improve this answer














                share|improve this answer



                share|improve this answer








                edited Oct 9 '18 at 17:46









                pomsky

                33.8k11105138




                33.8k11105138










                answered Oct 9 '18 at 17:29









                LuminousNutriaLuminousNutria

                195114




                195114






























                    draft saved

                    draft discarded




















































                    Thanks for contributing an answer to Ask Ubuntu!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid



                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.


                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function () {
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1082340%2fhow-to-add-eclipse-to-favorites%23new-answer', 'question_page');
                    }
                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    mysqli_query(): Empty query in /home/lucindabrummitt/public_html/blog/wp-includes/wp-db.php on line 1924

                    How to change which sound is reproduced for terminal bell?

                    Can I use Tabulator js library in my java Spring + Thymeleaf project?