Eclipse cannot create runnable jar - No resources selected











up vote
28
down vote

favorite
5












When I try to export my project as a runnable jar Eclise gives me the following error:



No resources selected.



The project runs fine within Eclipse, I already tried to clean the project before exporting, but that didn´t work.



Any ideas on how to fix this.










share|improve this question


























    up vote
    28
    down vote

    favorite
    5












    When I try to export my project as a runnable jar Eclise gives me the following error:



    No resources selected.



    The project runs fine within Eclipse, I already tried to clean the project before exporting, but that didn´t work.



    Any ideas on how to fix this.










    share|improve this question
























      up vote
      28
      down vote

      favorite
      5









      up vote
      28
      down vote

      favorite
      5






      5





      When I try to export my project as a runnable jar Eclise gives me the following error:



      No resources selected.



      The project runs fine within Eclipse, I already tried to clean the project before exporting, but that didn´t work.



      Any ideas on how to fix this.










      share|improve this question













      When I try to export my project as a runnable jar Eclise gives me the following error:



      No resources selected.



      The project runs fine within Eclipse, I already tried to clean the project before exporting, but that didn´t work.



      Any ideas on how to fix this.







      java eclipse executable-jar






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Jul 2 '12 at 8:33









      TrashCan

      3973919




      3973919
























          12 Answers
          12






          active

          oldest

          votes

















          up vote
          49
          down vote













          The problem is most likely with your run configuration.




          • Go to your Class that contains the main(String args) method you wish to automatically run
            when the jar is called from the command line

          • Right-click->Run As...->Application

          • Make sure it runs to your satisfaction

          • Now go through the export process as before, selecting the newly created launch configuration.


          The last step is key.






          share|improve this answer

















          • 1




            Will you please elaborate on where to find the newly created launch configuration? Everything seems the same.
            – tricknology
            Apr 2 '14 at 7:32










          • I think what was meant was that you choose the correct project from the dropdown menu labelled "Launch configuration", that is what worked for me, anyways
            – CSCH
            Apr 30 '15 at 18:39






          • 1




            just tried this a few times and still getting the error
            – Ben Arnao
            Feb 14 at 22:45


















          up vote
          11
          down vote













          I found another solution.



          I found that there's a bug in JDK 9.



          I solved it by downgrade to JDK 8(1.8.1)






          share|improve this answer





















          • I switched Eclipse's JRE to 1.8 and it worked! Thanks!
            – Zhiya
            Jan 23 at 19:53










          • Same, this fixed my issue. I was also using Maven and there was an eclipse plugin for "Java 8 support for m2e" but not one for java 9. I suspect maven (for eclipse anyway) might not support java 9 yet
            – Lightfire228
            Mar 16 at 22:50












          • This worked for me as well, thank you very much Sir.
            – Ericson Willians
            Aug 8 at 6:36


















          up vote
          3
          down vote



          accepted










          I fixed the problem, I exported the project as an archive file. Then I opened up a new workspace and imported the the archived project. After that I tried to export the project as a runnable jar, after two tries the jar runs as is it should.



          I still don't know what the exact cause was but I hope someone how has run into the same problem finds this helpful.






          share|improve this answer

















          • 1




            Tried it and didn't work for me. However simply deleting the run config and re-running did.
            – Lee Fogg
            Mar 26 '14 at 9:46










          • Yes. Didn't know what the exact issue is. But archiving and re-importing worked.
            – Vijay
            May 19 '17 at 4:01


















          up vote
          1
          down vote













          Try this, this is the way to create a jar or runnable jar in eclipse, all your external libraries in the project will be included



          File -> Export-> Java ->Runnbale JAR file

          Launch configuration : your Class containing the public static void main(String args)

          Export destination : Target place

          Library Handling:

          Package required libraries into generated JAR

          FINISH





          share|improve this answer

















          • 1




            Tried that, I am still getting the error, I also compared the build path source tab with a newly created project and found no unexpected things
            – TrashCan
            Jul 2 '12 at 8:56










          • I will try to export the project to an archive or filesystem. Then I will try to import the exported project in another workspace and try from there.
            – TrashCan
            Jul 2 '12 at 8:59


















          up vote
          1
          down vote













          Doing a (project->clean) and creating a new run configuration (with correct project and class name with main() method, selected) solved the problem for me.You just have to select the new run configuration while exporting runnable jar :)






          share|improve this answer




























            up vote
            0
            down vote













            When you click this option in Eclipse you should get a popup that lets you choose what files to export, you need to select the src folder.






            share|improve this answer

















            • 1




              I only get this pop-up when I export the project as a regular jar. Not when I export the project as a runnable jar.
              – TrashCan
              Jul 2 '12 at 8:38




















            up vote
            0
            down vote













            I was having this same problem, and I was able to resolve it. Maybe you should cross verify the main class, that you selected in this project. It is possible that some other project's main class may have the same name as the main class you selected. Make sure the main class you selected is the one from the project that you selected.






            share|improve this answer






























              up vote
              0
              down vote













              The problem is your package. You probably renamed it, and in the export option, the program was confused, and it was using the first name of your package.






              share|improve this answer






























                up vote
                0
                down vote













                This is basically happen when you change package name under which you made your program. This will create confusion regarding package, as per program export, main method still written in old package.
                To resolve it, Just copy it and paste it in same package with different name and then try to export it. Check for log too.






                share|improve this answer




























                  up vote
                  0
                  down vote













                  I was in the same situation. For me deleting existing eclipse installation(not not the project workspace) and opening the existing eclipse workspace with new installation of eclipse was the only thing that worked.






                  share|improve this answer




























                    up vote
                    -1
                    down vote













                    I continued to get the "no resources selected" error. I then did the procedure I am quoting and it gave me a MANIFEST file. Then I was able to create an executable JAR.



                    Quoting: "I exported the project as an archive file. Then I opened up a new workspace and imported the the archived project. After that I tried to export the project as a runnable jar, after two tries the jar runs as is it should."






                    share|improve this answer




























                      up vote
                      -3
                      down vote













                      Check that your project is correct at the time when you select the main class.



                      If the class non exist, it's the standard error of Eclipse.






                      share|improve this answer





















                        Your Answer






                        StackExchange.ifUsing("editor", function () {
                        StackExchange.using("externalEditor", function () {
                        StackExchange.using("snippets", function () {
                        StackExchange.snippets.init();
                        });
                        });
                        }, "code-snippets");

                        StackExchange.ready(function() {
                        var channelOptions = {
                        tags: "".split(" "),
                        id: "1"
                        };
                        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',
                        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%2fstackoverflow.com%2fquestions%2f11290225%2feclipse-cannot-create-runnable-jar-no-resources-selected%23new-answer', 'question_page');
                        }
                        );

                        Post as a guest















                        Required, but never shown

























                        12 Answers
                        12






                        active

                        oldest

                        votes








                        12 Answers
                        12






                        active

                        oldest

                        votes









                        active

                        oldest

                        votes






                        active

                        oldest

                        votes








                        up vote
                        49
                        down vote













                        The problem is most likely with your run configuration.




                        • Go to your Class that contains the main(String args) method you wish to automatically run
                          when the jar is called from the command line

                        • Right-click->Run As...->Application

                        • Make sure it runs to your satisfaction

                        • Now go through the export process as before, selecting the newly created launch configuration.


                        The last step is key.






                        share|improve this answer

















                        • 1




                          Will you please elaborate on where to find the newly created launch configuration? Everything seems the same.
                          – tricknology
                          Apr 2 '14 at 7:32










                        • I think what was meant was that you choose the correct project from the dropdown menu labelled "Launch configuration", that is what worked for me, anyways
                          – CSCH
                          Apr 30 '15 at 18:39






                        • 1




                          just tried this a few times and still getting the error
                          – Ben Arnao
                          Feb 14 at 22:45















                        up vote
                        49
                        down vote













                        The problem is most likely with your run configuration.




                        • Go to your Class that contains the main(String args) method you wish to automatically run
                          when the jar is called from the command line

                        • Right-click->Run As...->Application

                        • Make sure it runs to your satisfaction

                        • Now go through the export process as before, selecting the newly created launch configuration.


                        The last step is key.






                        share|improve this answer

















                        • 1




                          Will you please elaborate on where to find the newly created launch configuration? Everything seems the same.
                          – tricknology
                          Apr 2 '14 at 7:32










                        • I think what was meant was that you choose the correct project from the dropdown menu labelled "Launch configuration", that is what worked for me, anyways
                          – CSCH
                          Apr 30 '15 at 18:39






                        • 1




                          just tried this a few times and still getting the error
                          – Ben Arnao
                          Feb 14 at 22:45













                        up vote
                        49
                        down vote










                        up vote
                        49
                        down vote









                        The problem is most likely with your run configuration.




                        • Go to your Class that contains the main(String args) method you wish to automatically run
                          when the jar is called from the command line

                        • Right-click->Run As...->Application

                        • Make sure it runs to your satisfaction

                        • Now go through the export process as before, selecting the newly created launch configuration.


                        The last step is key.






                        share|improve this answer












                        The problem is most likely with your run configuration.




                        • Go to your Class that contains the main(String args) method you wish to automatically run
                          when the jar is called from the command line

                        • Right-click->Run As...->Application

                        • Make sure it runs to your satisfaction

                        • Now go through the export process as before, selecting the newly created launch configuration.


                        The last step is key.







                        share|improve this answer












                        share|improve this answer



                        share|improve this answer










                        answered Sep 24 '12 at 19:02









                        Robert Christian

                        11.9k186379




                        11.9k186379








                        • 1




                          Will you please elaborate on where to find the newly created launch configuration? Everything seems the same.
                          – tricknology
                          Apr 2 '14 at 7:32










                        • I think what was meant was that you choose the correct project from the dropdown menu labelled "Launch configuration", that is what worked for me, anyways
                          – CSCH
                          Apr 30 '15 at 18:39






                        • 1




                          just tried this a few times and still getting the error
                          – Ben Arnao
                          Feb 14 at 22:45














                        • 1




                          Will you please elaborate on where to find the newly created launch configuration? Everything seems the same.
                          – tricknology
                          Apr 2 '14 at 7:32










                        • I think what was meant was that you choose the correct project from the dropdown menu labelled "Launch configuration", that is what worked for me, anyways
                          – CSCH
                          Apr 30 '15 at 18:39






                        • 1




                          just tried this a few times and still getting the error
                          – Ben Arnao
                          Feb 14 at 22:45








                        1




                        1




                        Will you please elaborate on where to find the newly created launch configuration? Everything seems the same.
                        – tricknology
                        Apr 2 '14 at 7:32




                        Will you please elaborate on where to find the newly created launch configuration? Everything seems the same.
                        – tricknology
                        Apr 2 '14 at 7:32












                        I think what was meant was that you choose the correct project from the dropdown menu labelled "Launch configuration", that is what worked for me, anyways
                        – CSCH
                        Apr 30 '15 at 18:39




                        I think what was meant was that you choose the correct project from the dropdown menu labelled "Launch configuration", that is what worked for me, anyways
                        – CSCH
                        Apr 30 '15 at 18:39




                        1




                        1




                        just tried this a few times and still getting the error
                        – Ben Arnao
                        Feb 14 at 22:45




                        just tried this a few times and still getting the error
                        – Ben Arnao
                        Feb 14 at 22:45












                        up vote
                        11
                        down vote













                        I found another solution.



                        I found that there's a bug in JDK 9.



                        I solved it by downgrade to JDK 8(1.8.1)






                        share|improve this answer





















                        • I switched Eclipse's JRE to 1.8 and it worked! Thanks!
                          – Zhiya
                          Jan 23 at 19:53










                        • Same, this fixed my issue. I was also using Maven and there was an eclipse plugin for "Java 8 support for m2e" but not one for java 9. I suspect maven (for eclipse anyway) might not support java 9 yet
                          – Lightfire228
                          Mar 16 at 22:50












                        • This worked for me as well, thank you very much Sir.
                          – Ericson Willians
                          Aug 8 at 6:36















                        up vote
                        11
                        down vote













                        I found another solution.



                        I found that there's a bug in JDK 9.



                        I solved it by downgrade to JDK 8(1.8.1)






                        share|improve this answer





















                        • I switched Eclipse's JRE to 1.8 and it worked! Thanks!
                          – Zhiya
                          Jan 23 at 19:53










                        • Same, this fixed my issue. I was also using Maven and there was an eclipse plugin for "Java 8 support for m2e" but not one for java 9. I suspect maven (for eclipse anyway) might not support java 9 yet
                          – Lightfire228
                          Mar 16 at 22:50












                        • This worked for me as well, thank you very much Sir.
                          – Ericson Willians
                          Aug 8 at 6:36













                        up vote
                        11
                        down vote










                        up vote
                        11
                        down vote









                        I found another solution.



                        I found that there's a bug in JDK 9.



                        I solved it by downgrade to JDK 8(1.8.1)






                        share|improve this answer












                        I found another solution.



                        I found that there's a bug in JDK 9.



                        I solved it by downgrade to JDK 8(1.8.1)







                        share|improve this answer












                        share|improve this answer



                        share|improve this answer










                        answered Nov 14 '17 at 8:29









                        Seamoon Lee

                        11112




                        11112












                        • I switched Eclipse's JRE to 1.8 and it worked! Thanks!
                          – Zhiya
                          Jan 23 at 19:53










                        • Same, this fixed my issue. I was also using Maven and there was an eclipse plugin for "Java 8 support for m2e" but not one for java 9. I suspect maven (for eclipse anyway) might not support java 9 yet
                          – Lightfire228
                          Mar 16 at 22:50












                        • This worked for me as well, thank you very much Sir.
                          – Ericson Willians
                          Aug 8 at 6:36


















                        • I switched Eclipse's JRE to 1.8 and it worked! Thanks!
                          – Zhiya
                          Jan 23 at 19:53










                        • Same, this fixed my issue. I was also using Maven and there was an eclipse plugin for "Java 8 support for m2e" but not one for java 9. I suspect maven (for eclipse anyway) might not support java 9 yet
                          – Lightfire228
                          Mar 16 at 22:50












                        • This worked for me as well, thank you very much Sir.
                          – Ericson Willians
                          Aug 8 at 6:36
















                        I switched Eclipse's JRE to 1.8 and it worked! Thanks!
                        – Zhiya
                        Jan 23 at 19:53




                        I switched Eclipse's JRE to 1.8 and it worked! Thanks!
                        – Zhiya
                        Jan 23 at 19:53












                        Same, this fixed my issue. I was also using Maven and there was an eclipse plugin for "Java 8 support for m2e" but not one for java 9. I suspect maven (for eclipse anyway) might not support java 9 yet
                        – Lightfire228
                        Mar 16 at 22:50






                        Same, this fixed my issue. I was also using Maven and there was an eclipse plugin for "Java 8 support for m2e" but not one for java 9. I suspect maven (for eclipse anyway) might not support java 9 yet
                        – Lightfire228
                        Mar 16 at 22:50














                        This worked for me as well, thank you very much Sir.
                        – Ericson Willians
                        Aug 8 at 6:36




                        This worked for me as well, thank you very much Sir.
                        – Ericson Willians
                        Aug 8 at 6:36










                        up vote
                        3
                        down vote



                        accepted










                        I fixed the problem, I exported the project as an archive file. Then I opened up a new workspace and imported the the archived project. After that I tried to export the project as a runnable jar, after two tries the jar runs as is it should.



                        I still don't know what the exact cause was but I hope someone how has run into the same problem finds this helpful.






                        share|improve this answer

















                        • 1




                          Tried it and didn't work for me. However simply deleting the run config and re-running did.
                          – Lee Fogg
                          Mar 26 '14 at 9:46










                        • Yes. Didn't know what the exact issue is. But archiving and re-importing worked.
                          – Vijay
                          May 19 '17 at 4:01















                        up vote
                        3
                        down vote



                        accepted










                        I fixed the problem, I exported the project as an archive file. Then I opened up a new workspace and imported the the archived project. After that I tried to export the project as a runnable jar, after two tries the jar runs as is it should.



                        I still don't know what the exact cause was but I hope someone how has run into the same problem finds this helpful.






                        share|improve this answer

















                        • 1




                          Tried it and didn't work for me. However simply deleting the run config and re-running did.
                          – Lee Fogg
                          Mar 26 '14 at 9:46










                        • Yes. Didn't know what the exact issue is. But archiving and re-importing worked.
                          – Vijay
                          May 19 '17 at 4:01













                        up vote
                        3
                        down vote



                        accepted







                        up vote
                        3
                        down vote



                        accepted






                        I fixed the problem, I exported the project as an archive file. Then I opened up a new workspace and imported the the archived project. After that I tried to export the project as a runnable jar, after two tries the jar runs as is it should.



                        I still don't know what the exact cause was but I hope someone how has run into the same problem finds this helpful.






                        share|improve this answer












                        I fixed the problem, I exported the project as an archive file. Then I opened up a new workspace and imported the the archived project. After that I tried to export the project as a runnable jar, after two tries the jar runs as is it should.



                        I still don't know what the exact cause was but I hope someone how has run into the same problem finds this helpful.







                        share|improve this answer












                        share|improve this answer



                        share|improve this answer










                        answered Jul 2 '12 at 9:58









                        TrashCan

                        3973919




                        3973919








                        • 1




                          Tried it and didn't work for me. However simply deleting the run config and re-running did.
                          – Lee Fogg
                          Mar 26 '14 at 9:46










                        • Yes. Didn't know what the exact issue is. But archiving and re-importing worked.
                          – Vijay
                          May 19 '17 at 4:01














                        • 1




                          Tried it and didn't work for me. However simply deleting the run config and re-running did.
                          – Lee Fogg
                          Mar 26 '14 at 9:46










                        • Yes. Didn't know what the exact issue is. But archiving and re-importing worked.
                          – Vijay
                          May 19 '17 at 4:01








                        1




                        1




                        Tried it and didn't work for me. However simply deleting the run config and re-running did.
                        – Lee Fogg
                        Mar 26 '14 at 9:46




                        Tried it and didn't work for me. However simply deleting the run config and re-running did.
                        – Lee Fogg
                        Mar 26 '14 at 9:46












                        Yes. Didn't know what the exact issue is. But archiving and re-importing worked.
                        – Vijay
                        May 19 '17 at 4:01




                        Yes. Didn't know what the exact issue is. But archiving and re-importing worked.
                        – Vijay
                        May 19 '17 at 4:01










                        up vote
                        1
                        down vote













                        Try this, this is the way to create a jar or runnable jar in eclipse, all your external libraries in the project will be included



                        File -> Export-> Java ->Runnbale JAR file

                        Launch configuration : your Class containing the public static void main(String args)

                        Export destination : Target place

                        Library Handling:

                        Package required libraries into generated JAR

                        FINISH





                        share|improve this answer

















                        • 1




                          Tried that, I am still getting the error, I also compared the build path source tab with a newly created project and found no unexpected things
                          – TrashCan
                          Jul 2 '12 at 8:56










                        • I will try to export the project to an archive or filesystem. Then I will try to import the exported project in another workspace and try from there.
                          – TrashCan
                          Jul 2 '12 at 8:59















                        up vote
                        1
                        down vote













                        Try this, this is the way to create a jar or runnable jar in eclipse, all your external libraries in the project will be included



                        File -> Export-> Java ->Runnbale JAR file

                        Launch configuration : your Class containing the public static void main(String args)

                        Export destination : Target place

                        Library Handling:

                        Package required libraries into generated JAR

                        FINISH





                        share|improve this answer

















                        • 1




                          Tried that, I am still getting the error, I also compared the build path source tab with a newly created project and found no unexpected things
                          – TrashCan
                          Jul 2 '12 at 8:56










                        • I will try to export the project to an archive or filesystem. Then I will try to import the exported project in another workspace and try from there.
                          – TrashCan
                          Jul 2 '12 at 8:59













                        up vote
                        1
                        down vote










                        up vote
                        1
                        down vote









                        Try this, this is the way to create a jar or runnable jar in eclipse, all your external libraries in the project will be included



                        File -> Export-> Java ->Runnbale JAR file

                        Launch configuration : your Class containing the public static void main(String args)

                        Export destination : Target place

                        Library Handling:

                        Package required libraries into generated JAR

                        FINISH





                        share|improve this answer












                        Try this, this is the way to create a jar or runnable jar in eclipse, all your external libraries in the project will be included



                        File -> Export-> Java ->Runnbale JAR file

                        Launch configuration : your Class containing the public static void main(String args)

                        Export destination : Target place

                        Library Handling:

                        Package required libraries into generated JAR

                        FINISH






                        share|improve this answer












                        share|improve this answer



                        share|improve this answer










                        answered Jul 2 '12 at 8:52









                        Kumar Vivek Mitra

                        29.1k63563




                        29.1k63563








                        • 1




                          Tried that, I am still getting the error, I also compared the build path source tab with a newly created project and found no unexpected things
                          – TrashCan
                          Jul 2 '12 at 8:56










                        • I will try to export the project to an archive or filesystem. Then I will try to import the exported project in another workspace and try from there.
                          – TrashCan
                          Jul 2 '12 at 8:59














                        • 1




                          Tried that, I am still getting the error, I also compared the build path source tab with a newly created project and found no unexpected things
                          – TrashCan
                          Jul 2 '12 at 8:56










                        • I will try to export the project to an archive or filesystem. Then I will try to import the exported project in another workspace and try from there.
                          – TrashCan
                          Jul 2 '12 at 8:59








                        1




                        1




                        Tried that, I am still getting the error, I also compared the build path source tab with a newly created project and found no unexpected things
                        – TrashCan
                        Jul 2 '12 at 8:56




                        Tried that, I am still getting the error, I also compared the build path source tab with a newly created project and found no unexpected things
                        – TrashCan
                        Jul 2 '12 at 8:56












                        I will try to export the project to an archive or filesystem. Then I will try to import the exported project in another workspace and try from there.
                        – TrashCan
                        Jul 2 '12 at 8:59




                        I will try to export the project to an archive or filesystem. Then I will try to import the exported project in another workspace and try from there.
                        – TrashCan
                        Jul 2 '12 at 8:59










                        up vote
                        1
                        down vote













                        Doing a (project->clean) and creating a new run configuration (with correct project and class name with main() method, selected) solved the problem for me.You just have to select the new run configuration while exporting runnable jar :)






                        share|improve this answer

























                          up vote
                          1
                          down vote













                          Doing a (project->clean) and creating a new run configuration (with correct project and class name with main() method, selected) solved the problem for me.You just have to select the new run configuration while exporting runnable jar :)






                          share|improve this answer























                            up vote
                            1
                            down vote










                            up vote
                            1
                            down vote









                            Doing a (project->clean) and creating a new run configuration (with correct project and class name with main() method, selected) solved the problem for me.You just have to select the new run configuration while exporting runnable jar :)






                            share|improve this answer












                            Doing a (project->clean) and creating a new run configuration (with correct project and class name with main() method, selected) solved the problem for me.You just have to select the new run configuration while exporting runnable jar :)







                            share|improve this answer












                            share|improve this answer



                            share|improve this answer










                            answered Dec 14 '13 at 15:38









                            MD. Mohiuddin Ahmed

                            1,26121730




                            1,26121730






















                                up vote
                                0
                                down vote













                                When you click this option in Eclipse you should get a popup that lets you choose what files to export, you need to select the src folder.






                                share|improve this answer

















                                • 1




                                  I only get this pop-up when I export the project as a regular jar. Not when I export the project as a runnable jar.
                                  – TrashCan
                                  Jul 2 '12 at 8:38

















                                up vote
                                0
                                down vote













                                When you click this option in Eclipse you should get a popup that lets you choose what files to export, you need to select the src folder.






                                share|improve this answer

















                                • 1




                                  I only get this pop-up when I export the project as a regular jar. Not when I export the project as a runnable jar.
                                  – TrashCan
                                  Jul 2 '12 at 8:38















                                up vote
                                0
                                down vote










                                up vote
                                0
                                down vote









                                When you click this option in Eclipse you should get a popup that lets you choose what files to export, you need to select the src folder.






                                share|improve this answer












                                When you click this option in Eclipse you should get a popup that lets you choose what files to export, you need to select the src folder.







                                share|improve this answer












                                share|improve this answer



                                share|improve this answer










                                answered Jul 2 '12 at 8:36









                                Tomer

                                11.4k115092




                                11.4k115092








                                • 1




                                  I only get this pop-up when I export the project as a regular jar. Not when I export the project as a runnable jar.
                                  – TrashCan
                                  Jul 2 '12 at 8:38
















                                • 1




                                  I only get this pop-up when I export the project as a regular jar. Not when I export the project as a runnable jar.
                                  – TrashCan
                                  Jul 2 '12 at 8:38










                                1




                                1




                                I only get this pop-up when I export the project as a regular jar. Not when I export the project as a runnable jar.
                                – TrashCan
                                Jul 2 '12 at 8:38






                                I only get this pop-up when I export the project as a regular jar. Not when I export the project as a runnable jar.
                                – TrashCan
                                Jul 2 '12 at 8:38












                                up vote
                                0
                                down vote













                                I was having this same problem, and I was able to resolve it. Maybe you should cross verify the main class, that you selected in this project. It is possible that some other project's main class may have the same name as the main class you selected. Make sure the main class you selected is the one from the project that you selected.






                                share|improve this answer



























                                  up vote
                                  0
                                  down vote













                                  I was having this same problem, and I was able to resolve it. Maybe you should cross verify the main class, that you selected in this project. It is possible that some other project's main class may have the same name as the main class you selected. Make sure the main class you selected is the one from the project that you selected.






                                  share|improve this answer

























                                    up vote
                                    0
                                    down vote










                                    up vote
                                    0
                                    down vote









                                    I was having this same problem, and I was able to resolve it. Maybe you should cross verify the main class, that you selected in this project. It is possible that some other project's main class may have the same name as the main class you selected. Make sure the main class you selected is the one from the project that you selected.






                                    share|improve this answer














                                    I was having this same problem, and I was able to resolve it. Maybe you should cross verify the main class, that you selected in this project. It is possible that some other project's main class may have the same name as the main class you selected. Make sure the main class you selected is the one from the project that you selected.







                                    share|improve this answer














                                    share|improve this answer



                                    share|improve this answer








                                    edited Dec 12 '13 at 3:40









                                    Michael Petrotta

                                    51.2k12127170




                                    51.2k12127170










                                    answered Dec 12 '13 at 3:10









                                    tanrl

                                    1




                                    1






















                                        up vote
                                        0
                                        down vote













                                        The problem is your package. You probably renamed it, and in the export option, the program was confused, and it was using the first name of your package.






                                        share|improve this answer



























                                          up vote
                                          0
                                          down vote













                                          The problem is your package. You probably renamed it, and in the export option, the program was confused, and it was using the first name of your package.






                                          share|improve this answer

























                                            up vote
                                            0
                                            down vote










                                            up vote
                                            0
                                            down vote









                                            The problem is your package. You probably renamed it, and in the export option, the program was confused, and it was using the first name of your package.






                                            share|improve this answer














                                            The problem is your package. You probably renamed it, and in the export option, the program was confused, and it was using the first name of your package.







                                            share|improve this answer














                                            share|improve this answer



                                            share|improve this answer








                                            edited Mar 1 '14 at 12:24









                                            Sumurai8

                                            12.7k83160




                                            12.7k83160










                                            answered Mar 1 '14 at 11:16









                                            isaac BR

                                            11




                                            11






















                                                up vote
                                                0
                                                down vote













                                                This is basically happen when you change package name under which you made your program. This will create confusion regarding package, as per program export, main method still written in old package.
                                                To resolve it, Just copy it and paste it in same package with different name and then try to export it. Check for log too.






                                                share|improve this answer

























                                                  up vote
                                                  0
                                                  down vote













                                                  This is basically happen when you change package name under which you made your program. This will create confusion regarding package, as per program export, main method still written in old package.
                                                  To resolve it, Just copy it and paste it in same package with different name and then try to export it. Check for log too.






                                                  share|improve this answer























                                                    up vote
                                                    0
                                                    down vote










                                                    up vote
                                                    0
                                                    down vote









                                                    This is basically happen when you change package name under which you made your program. This will create confusion regarding package, as per program export, main method still written in old package.
                                                    To resolve it, Just copy it and paste it in same package with different name and then try to export it. Check for log too.






                                                    share|improve this answer












                                                    This is basically happen when you change package name under which you made your program. This will create confusion regarding package, as per program export, main method still written in old package.
                                                    To resolve it, Just copy it and paste it in same package with different name and then try to export it. Check for log too.







                                                    share|improve this answer












                                                    share|improve this answer



                                                    share|improve this answer










                                                    answered Feb 27 '16 at 20:42









                                                    Anoop Rai

                                                    1




                                                    1






















                                                        up vote
                                                        0
                                                        down vote













                                                        I was in the same situation. For me deleting existing eclipse installation(not not the project workspace) and opening the existing eclipse workspace with new installation of eclipse was the only thing that worked.






                                                        share|improve this answer

























                                                          up vote
                                                          0
                                                          down vote













                                                          I was in the same situation. For me deleting existing eclipse installation(not not the project workspace) and opening the existing eclipse workspace with new installation of eclipse was the only thing that worked.






                                                          share|improve this answer























                                                            up vote
                                                            0
                                                            down vote










                                                            up vote
                                                            0
                                                            down vote









                                                            I was in the same situation. For me deleting existing eclipse installation(not not the project workspace) and opening the existing eclipse workspace with new installation of eclipse was the only thing that worked.






                                                            share|improve this answer












                                                            I was in the same situation. For me deleting existing eclipse installation(not not the project workspace) and opening the existing eclipse workspace with new installation of eclipse was the only thing that worked.







                                                            share|improve this answer












                                                            share|improve this answer



                                                            share|improve this answer










                                                            answered Nov 10 at 23:59









                                                            Ap S

                                                            1




                                                            1






















                                                                up vote
                                                                -1
                                                                down vote













                                                                I continued to get the "no resources selected" error. I then did the procedure I am quoting and it gave me a MANIFEST file. Then I was able to create an executable JAR.



                                                                Quoting: "I exported the project as an archive file. Then I opened up a new workspace and imported the the archived project. After that I tried to export the project as a runnable jar, after two tries the jar runs as is it should."






                                                                share|improve this answer

























                                                                  up vote
                                                                  -1
                                                                  down vote













                                                                  I continued to get the "no resources selected" error. I then did the procedure I am quoting and it gave me a MANIFEST file. Then I was able to create an executable JAR.



                                                                  Quoting: "I exported the project as an archive file. Then I opened up a new workspace and imported the the archived project. After that I tried to export the project as a runnable jar, after two tries the jar runs as is it should."






                                                                  share|improve this answer























                                                                    up vote
                                                                    -1
                                                                    down vote










                                                                    up vote
                                                                    -1
                                                                    down vote









                                                                    I continued to get the "no resources selected" error. I then did the procedure I am quoting and it gave me a MANIFEST file. Then I was able to create an executable JAR.



                                                                    Quoting: "I exported the project as an archive file. Then I opened up a new workspace and imported the the archived project. After that I tried to export the project as a runnable jar, after two tries the jar runs as is it should."






                                                                    share|improve this answer












                                                                    I continued to get the "no resources selected" error. I then did the procedure I am quoting and it gave me a MANIFEST file. Then I was able to create an executable JAR.



                                                                    Quoting: "I exported the project as an archive file. Then I opened up a new workspace and imported the the archived project. After that I tried to export the project as a runnable jar, after two tries the jar runs as is it should."







                                                                    share|improve this answer












                                                                    share|improve this answer



                                                                    share|improve this answer










                                                                    answered Nov 5 '13 at 19:10









                                                                    Jeannine Menger

                                                                    9712




                                                                    9712






















                                                                        up vote
                                                                        -3
                                                                        down vote













                                                                        Check that your project is correct at the time when you select the main class.



                                                                        If the class non exist, it's the standard error of Eclipse.






                                                                        share|improve this answer

























                                                                          up vote
                                                                          -3
                                                                          down vote













                                                                          Check that your project is correct at the time when you select the main class.



                                                                          If the class non exist, it's the standard error of Eclipse.






                                                                          share|improve this answer























                                                                            up vote
                                                                            -3
                                                                            down vote










                                                                            up vote
                                                                            -3
                                                                            down vote









                                                                            Check that your project is correct at the time when you select the main class.



                                                                            If the class non exist, it's the standard error of Eclipse.






                                                                            share|improve this answer












                                                                            Check that your project is correct at the time when you select the main class.



                                                                            If the class non exist, it's the standard error of Eclipse.







                                                                            share|improve this answer












                                                                            share|improve this answer



                                                                            share|improve this answer










                                                                            answered Mar 27 '13 at 16:40









                                                                            vince

                                                                            1




                                                                            1






























                                                                                 

                                                                                draft saved


                                                                                draft discarded



















































                                                                                 


                                                                                draft saved


                                                                                draft discarded














                                                                                StackExchange.ready(
                                                                                function () {
                                                                                StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f11290225%2feclipse-cannot-create-runnable-jar-no-resources-selected%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

                                                                                Florida Star v. B. J. F.

                                                                                Danny Elfman

                                                                                Lugert, Oklahoma