Can I distribute a JDK with my application?

≡放荡痞女 提交于 2019-12-05 10:08:49
Eternal Noob

The information regarding redistribution is here for Java 10 JDK and here for Java 8 JDK. Currently Java 8's is substantially more detailed than Java 10's.

and you can use PackJacket, to package all the files you need and create an installer.

Assuming you satisfy all the legal terms required to distribute stuff, you can use izpack to install all the prerequisites, including a JDK/JVM and configuration of environment variables.

Quite a number of IBM Eclipse based tools have JDKs with them.

Or you could just emit bytecode directly. You could bundle a much smaller (than the JDK) JVM dynamic language then use it to compile to bytecode or use libraries made for that purpose.

(I got the following from the Projects using Kawa page)

App Inventor for Android uses Kawa to translate its visual blocks language.

...The Nice compiler (nicec) uses Kawa's gnu.expr and gnu.bytecode packages to generate Java bytecode. ...

It's this last one is the one that uses the Kawa language framework to generate bytecode.

Don't forget about Groovy, Jython, Clojure, and Ruby. Interesting fact about Groovy, the interpreter can compile Java code since Groovy is (more or less) a superset of Java.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!