.jar文件无法打开 [英] .jar file will not open
问题描述
我创建了一个可执行的jar文件,并尝试对生成的.jar使用extract和package选项.它创建了它,但是单击它没有任何反应.我也尝试将其命名为与类文件或项目文件相同.在我不知道为什么它停止工作之前,这没有发生.它甚至不会运行简单的hello world文件.但是,我之前创建的.jar文件将运行.我使用Eclipse进行编译,并在cmd中使用java -jar运行它.我正在运行Windows07.将不胜感激任何帮助
I have created an executable jar file and have tried both the extract and package option for generated .jar. It creates it but when clicking on it nothing happens. I tried naming it the same as the class file or the project file too. This didn't happen before I don't know why it stoped working. It won't run even a simple hello world file. However a .jar file I made a while ago will run. I compiled with Eclipse, and running it with java -jar in cmd does work. I am running Windows 07. Any help would be greatly appreciated
尝试卸载并重新安装Java和Java JDK
tried uninstalling and reinstalling Java and Java JDK
推荐答案
您应该检查用于打开jar文件的应用程序.它应该是java或javaw,并应使用-jar参数进行调用.您正在使用什么操作系统?
you should check the application used to open the jar file. it should be java or javaw and should be called with -jar parameter. What Operating system are you using?
这篇关于.jar文件无法打开的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!