简体   繁体   中英

How to open exported .exe Jar file or RUN.bat file in different computer?

I recently made a game and trying to distribute to my friends.

I exported .exe Jar file in Eclipse, and tried to open it to see if it works, but somehow it didn't so I had to manually make RUN.bat file, and it worked. So I zipped those two files together and send it to my friends. But they all said the neither file does not work.

The error message is this : "It is not an internal or external command, executable program, or batch file."

So it worked in my computer and it didn't work when it was in other computers. How could I resolve the problem? Is it because they didn't have Eclipse? Is there any way they can run without having Eclipse or anything?

您的批处理可能是在.bat中使用java -jar,并且您的朋友没有安装JRE

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