简体   繁体   中英

Executable Jar file not working another machine

I have created an executable jar file to my java programm using Eclipse(File->Export).

When i double click the jar it works fine.After i copy the jar file to another machine(windows) i got an error "Invalid or corrupt jarfile".I have installed JRE and JVM.

Anybody know what is the issue. Help is highly appreciated.

Thanks, vks

as you said you have double click try command line as another machine(windows) might not be assign jar extension to execute. to run jar manually do.

java -jar example.jar

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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