![](/img/trans.png)
[英]How do I make my java program use my custom JRE when executed by double-clicking, rather than the default JDK installed?
[英]If I use Zulu JDK 13 for my project. Will end-user be able to use my program if they have installed JRE from oracle?
我只是擔心如果我在 Zulu JDK 13 而不是 oracleJDK 的幫助下構建我的應用程序 - 如果最終用戶從 Oracle 安裝了 JRE,他們是否能夠啟動我的基於 Zulu JDK 13 的應用程序?
我決定使用 Zulu JDK 13,因為我聽說如果我想將我的應用程序賣給其他用戶,就必須從現在開始支付 oracleJDK。
If you build your Java app using any implementation of Java 13 that passes the quality tests from Oracle ( TCK ) and/or the quality tests from Eclipse Adoptium ( formerly AdoptOpenJDK ) ( AQA ), then your Java app will run on any other implementation of Java 13 也通過了這些測試。
You certainly can develop your app on the Zulu JVM from Azul Systems while deploying to your customer's Oracle JVM from Oracle, as they have both passed quality tests to verify they comply with the Java platform specifications .
我正在解決技術角度。 您和您的客戶還必須遵守您獲得的任何 Java 實施的許可條款。
只要您遵守許可條款,您還可以選擇在您的應用程序中捆綁 JVM。 jlink等研究工具。
請注意,據我所知,Java 13 已停產。 考慮使用當前版本 14 或當前LTS版本 11。
您可以選擇多家供應商,這些供應商提供基於 OpenJDK 項目源代碼的構建和安裝程序。 這是我制作的流程圖,以幫助指導您選擇一個。
以下是選擇供應商時的注意事項列表。
你說:
因為聽說oracleJDK從現在開始要收費了
不要根據您“聽到”的內容做出重要的業務和技術決策。 通過下載和使用軟件(例如 Java 實施)閱讀您同意的法律條款。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.