[英]I can't run my JAR file on Windows Vista
I have recently made a .JAR file called Electronics.jar 我最近制作了一个名为Electronics.jar的.JAR文件
(located in C:\\Java\\eclipse\\Java\\jdk1.7.0_03\\bin>Electronics.jar) (位于C:\\ Java \\ eclipse \\ Java \\ jdk1.7.0_03 \\ bin> Electronics.jar中)
and it won't run. 它不会运行。 I have tried loads of different methods of running it.
我尝试了许多不同方法来运行它。 I have used the command
我已经使用了命令
C:\Java\eclipse\Java\jdk1.7.0_03\bin>javaw -jar Electronics.jar
in the command prompt, I have tried the same command run from a batch file, and I have tried double clicking on the icon in windows explorer. 在命令提示符下,我尝试从批处理文件运行相同的命令,并且尝试双击Windows资源管理器中的图标。 The latter method made a popup box appear, asking which program I wanted to use to open the file.
后一种方法使出现一个弹出框,询问我要使用哪个程序打开文件。 I found the javaw.exe file, selected it, and tried to run it with that, but nothing happened.
我找到了javaw.exe文件,选择了该文件,并尝试使用该文件运行它,但是没有任何反应。 Can anyone help?
有人可以帮忙吗?
如果您可以在Windows资源管理器中找到它,可以执行以下操作:转到文件的位置(在Windows资源管理器中) shift + rightClick
open command prompt here
空白处,然后open command prompt here
选择open command prompt here
并尝试执行java Electronics.jar
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.