Possible to run JAR file on any OS?

后端 未结 5 1792
再見小時候
再見小時候 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:24

    Yes, as long as you don't use any native libraries (JNI) this is how java works. It's platform independent.

提交回复
热议问题