双击时jar文件无法打开 [英] jar file doesn't open upon double click

查看:132
本文介绍了双击时jar文件无法打开的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我双击jar文件时,GUI程序不会自动启动。相反,我必须打开命令提示符,然后键入 java -jar abc.jar ,然后才启动它。这是为什么?我需要做些什么才能避免这种情况?

When I double click the jar file, the GUI program doesn't start by itself. Instead I have to open the Command prompt and then type java -jar abc.jar and only then it starts up. Why is that? What do I need to do to avoid this?

我是否对默认的jar文件打开器有问题?什么应该是jar文件开启者?

Is it that I have some problem with the default jar file opener? What should be the jar file opener?

推荐答案

也许你想按照这篇文章中的说明:在Windows上运行JAR文件

Maybe you would like to follow the instructions in this post: Running JAR file on Windows.

只是一个但是要注意。我工作的确切语法是在我的Windows XP中:
C:\Program Files \ Java * \\ _j2re1.4.2_04 \bin\javaw.exe -jar% 1%

Just a minor note though. The exact syntax for me to work was in my Windows XP: C:\Program Files\Java\j2re1.4.2_04\bin\javaw.exe -jar "%1" %

这篇关于双击时jar文件无法打开的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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