Eclipse:将源代码导出为可运行的jar [英] Eclipse: include source code while exporting as runnable jar

查看:365
本文介绍了Eclipse:将源代码导出为可运行的jar的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道如何在eclipse中创建一个可运行的.jar文件,但是我看不到包含src .java文件的选项。

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 the src .java files as well.

如何实现这一点?

推荐答案

Export - > Jar文件对话框可以选择包含源文件和资源。

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

为了使runnable成为一个标准的Jar文件,您只需要添加/包含适当的 MANIFEST.MF 您自己...

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

这篇关于Eclipse:将源代码导出为可运行的jar的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆