Is it possible to compile java using Oracle JDK and run the code on OpenJDK?

前端 未结 4 1557
春和景丽
春和景丽 2021-02-14 00:41

So is it possible to do all the development of a Java daemon (Apache Daemon) on a Windows 7 machine, then install the service on Ubuntu server (still have to search how to do th

4条回答
  •  说谎
    说谎 (楼主)
    2021-02-14 01:17

    No, that's not but you have nothing to worry about this.Java is a standardized platform, you should be able to compile and run on any implementation of it. Just as long as you keep the version in mind. Java 7 software is not going to run on a Java 6 installation completely. Java 6 software does work on a Java 7 installation completely though.

提交回复
热议问题