eclipse RCP 2018-09 + OpenJDK 11 + tycho: how to package an application with the JRE?

瘦欲@ 提交于 2020-01-01 09:50:50

问题


Currently I'm using tycho to build and package my eclipse RCP app with java 8 and eclipse 4.8, (JMSToolBox)
For windows distributions, the tycho build process "copies" the JRE v8 (Oracle) into the distribution package in the"jre"directory via an ant task

I'm in the process of upgrading to eclipse RCP 2018-09 and Java 11 (OpenJDK)

2 problems arise:

  • OpenJDK 11 does not provide a JRE OOTB. As I do not want to bundle the 300MB of the full JDK in the distribution, is there a way to embed only the equivalent of the JRE for java 11. With tycho itself? by building a specific JRE by using some JDK tools like"jlint"on the eclipse-rcp plugins used by my app?
  • Tycho and OSGI do not currently fully support Java 11, even with the java 11 plugin from the market place installed. See my other post on the subject here

I'm curious to find a running example of a tycho pom.xml file doing that


回答1:


It seems that Adopt OpenJDK provides a JRE for Java 11

Example for Java 11 with J9 on Windows x64: https://adoptopenjdk.net/releases.html?variant=openjdk11&jvmVariant=openj9#x64_win



来源:https://stackoverflow.com/questions/52627195/eclipse-rcp-2018-09-openjdk-11-tycho-how-to-package-an-application-with-the

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