从Eclipse导出的可运行JAR文件似乎不执行 [英] Exported runnable JAR file from Eclipse doesn't seem to execute

查看:137
本文介绍了从Eclipse导出的可运行JAR文件似乎不执行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

(免责声明:我不是Java程序员,真的很不了解我在Eclipse中做什么)

(Disclaimer: I am not a Java programmer, and really have very little idea what I'm doing in Eclipse)

我在Eclipse中黑客攻击了一个应用程序而我已经完成并作为一个运行良好的JAR导出。我没有收到任何笔记或发表任何意见。

I hacked out an application in Eclipse a while back which I finished off and exported as a JAR which runs nicely. I didn't take any notes or make any comments.

现在是对项目进行一些更改的时候了,但是我必须重新加载它,因为我的电脑已经被擦除,所以一些设置等可能已经改变了。

The time comes to make some changes to the project but I have to reload it all again because my PC has since been wiped so some settings etc have probably changed.

无论如何,它都可以从Eclipse运行得很好。但是当我作为一个可运行的JAR导出,并双击运行应用程序,似乎不执行。

我可以看到有javaw运行的实例,但不会出现窗口。没有错误。 Nada。

I can see that there is an instance of javaw running, but no window appears. No errors. Nada.

正如我所说,它在Eclipse中精美地工作。任何想法?

As I said, it works beautifully in Eclipse. Any ideas?

我不知道如何检测发生了什么 - 正如我所说,我不是一个java程序员: - )

I have little idea of how I can detect what is going on - as I said, I am NOT a java programmer :-)

推荐答案

然后,您可以将问题标记为关闭:

Ok then, so you can mark the question closed:

如果您的Java安装注册了.jar扩展,它将尝试运行Jar(我猜这是发生了什么)。但是它会安静地这样做。

If your Java installation is registered for the .jar extension it will try to run the Jar (i guess that's what's happening). But it will do so quietly.

为了看到发生了什么(错误等等),你应该尝试从命令行运行它与 java -jar myfile.jar

In order to see what's happening (errors and such) you should try to run it from the command line with java -jar myfile.jar.

这篇关于从Eclipse导出的可运行JAR文件似乎不执行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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