简体   繁体   English

Java Eclipse-导出问题

[英]Java Eclipse - Exporting issue

I have currently finished my java project in eclipse and now I would like to export it as an executable .jar. 我目前已经在eclipse中完成了我的Java项目,现在我想将其导出为可执行文件.jar。 The strange thing is, that my program is working fine, when I run it in eclipse, but, unfortnuately, it is not working when I export it. 奇怪的是,当我在eclipse中运行程序时,我的程序可以正常工作,但是不幸的是,在导出程序时它无法工作。 What should happen: Well, I have set up a GlobalMouseListener with system-hook-2.5.jar. 应该发生什么:嗯,我已经用system-hook-2.5.jar设置了一个GlobalMouseListener。 When I run it as an executable .jar I don't get any input from the listener. 当我将其作为可执行文件.jar运行时,我没有从监听器获得任何输入。 Library is included (I'm working with system-hook-2.5.jar). 包括库(我正在使用system-hook-2.5.jar)。 Is this a problem? 这有问题吗? It is not the first time exporting a Java Project for me. 这不是我第一次导出Java项目。

Any suggestions, what I could try? 有什么建议,我可以尝试什么?

It is always a good idea to start the program via console Type in 通过控制台启动程序总是一个好主意

java -jar <Filename>

I got an exception, that causes some problems. 我有一个例外,这会导致一些问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM