Possible to run JAR file on any OS?

后端 未结 5 1816
再見小時候
再見小時候 2020-12-10 19:20

Is it possible to execute a JAR file on any OS (like Windows, Linux, Mac OS X)? I want to build a simple application that I want to run on Linux, Windows, and Mac OS X. Coul

5条回答
  •  庸人自扰
    2020-12-10 20:06

    Jar files are designed to run on any OS that has a JVM of a compatible version installed. Some jar files, however, may have be compiled from Java code that used OS-specific code (say talking to Windows registries), so testing it on other OS's is wise.

提交回复
热议问题