Eclipse无法创建可运行的jar - 没有选择资源 [英] Eclipse cannot create runnable jar - No resources selected

查看:151
本文介绍了Eclipse无法创建可运行的jar - 没有选择资源的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试将项目导出为可运行的jar时,Eclise给出了以下错误:

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

未选择任何资源。

该项目在Eclipse中运行良好,我已经尝试在导出之前清理项目,但是没有用。

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.

推荐答案

我修复了问题,我将项目导出为存档文件。然后我打开了一个新的工作区并导入了已归档的项目。之后我尝试将项目导出为一个可运行的jar,经过两次尝试后,jar就像应该的那样运行。

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.

这篇关于Eclipse无法创建可运行的jar - 没有选择资源的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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