Eclipse: include source code while exporting as runnable jar

后端 未结 3 426
北海茫月
北海茫月 2021-01-17 20:09

I understand how to include other needed libraries or outside resources while creating a runnable .jar file in eclipse, but what I don\'t see is an option to also include th

相关标签:
3条回答
  • 2021-01-17 21:09

    Export to Runnable jar. Open the Runnable Jar with WinRAR. Click Add button, select the src.zip file.

    0 讨论(0)
  • 2021-01-17 21:09

    I know this is answer is very late, but for those who still read this:

    Eclipse has this option. You probably just did not notice it. I haven't checked since what version, Eclipse Luna has it for sure.

    • Export --> Jar File
    • then do not click Finish, but click Next.
    • You have more options there.
    • You will probably have to click Next twice to get to the Main Class selection.
    0 讨论(0)
  • 2021-01-17 21:10

    In the Export --> Jar File dialog you have the option to incluse source files and resources.

    enter image description here

    To make runnable a standard Jar File you only need to add/include an appropiate MANIFEST.MF on your own ...

    0 讨论(0)
提交回复
热议问题