Java:导出到eclipse中的.jar文件 [英] Java: export to an .jar file in eclipse

查看:149
本文介绍了Java:导出到eclipse中的.jar文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图将Eclipse中的程序导出到一个jar文件。

I'm trying to export a program in Eclipse to a jar file.

在我的项目中,我添加了一些照片和PDF:当我导出到jar文件时,似乎只有 main 被编译和导出。

In my project I have added some pictures and PDF:s. When I'm exporting to jar file, it seems that only the main has been compiled and exported.

如果可能,我的意图是将所有内容导出到jar文件,因为我想将其转换为可引导文件,如.exe文件。

My will is to export everything to a jar file if it's possible, because then I want to convert it to an extraditable file, like .exe-file.

但是如何?

推荐答案

不需要外部插件。在导出JAR 对话框中,确保您选择 所有需要导出的资源。默认情况下,导出其他资源文件也不会有问题(图片,配置文件等),请参见下面的屏幕截图。

No need for external plugins. In the Export JAR dialog, make sure you select all the necessary resources you want to export. By default, there should be no problem exporting other resource files as well (pictures, configuration files, etc...), see screenshot below.

这篇关于Java:导出到eclipse中的.jar文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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