简体   繁体   English

可执行jar文件未在窗口10上运行

[英]executable jar file doesn't run on window 10

so it was created from eclipse. 因此它是从eclipse创建的。 Double click didn't work, a .bat file didn't work (it open cmd and close it immediately), i have updated java RE but nothing change. 双击不起作用,.bat文件不起作用(它打开cmd并立即将其关闭),我已经更新了Java RE,但没有任何更改。 The only way to run it is to move it to C:\\Users\\user and open cmd and type java -jar xla.jar. 运行它的唯一方法是将其移动到C:\\ Users \\ user并打开cmd并键入java -jar xla.jar。 I don't want to change any setting of the computer since i have to send it to my friend (this is a group project). 我不想更改计算机的任何设置,因为我必须将其发送给我的朋友(这是一个小组项目)。 Btw i'm on the new Fall Creator Window version. 顺便说一句,我正在使用新的Fall Creator Window版本。

try 尝试

java -cp xla.jar com.package.name.Classname java -cp xla.jar com.package.name.Classname

if you have main method on a specific class.. using a batch file and then run it .. if you cannot run it by double clicking just google and create a exe to run your batch file. 如果您在特定类上具有主要方法..使用批处理文件,然后运行它..如果您无法通过双击google并创建一个exe来运行您的批处理文件来运行它。

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

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