简体   繁体   English

使用某些JDK的Eclipse RCP产品导出

[英]Eclipse RCP product export using a certain JDK

My Eclipse Mars 4.5.1. 我的Eclipse火星4.5.1。 uses JDK 8 to start-up (specified in the eclipse.ini ) 使用JDK 8进行启动(在eclipse.ini指定)

My RCP project uses JDK 7 . 我的RCP项目使用JDK 7 The entire workspace uses 7. I've also included the JavaFX JAR until I migrate the whole project to JDK 8, where I won't need it. 整个工作区使用7。在将整个项目迁移到JDK 8之前,我还包括了JavaFX JAR。

When I try to export the RCP project using the .product file, the exported version has some logs saying that certain classes using JavaFX have compile errors. 当我尝试使用.product文件导出RCP项目时,导出的版本具有一些日志,表明某些使用JavaFX的类具有编译错误。 Even though the exported version is started with JDK 7 (specified in the .ini file), and the JavaFX JAR surely was exported too, these UI components crash. 即使导出的版本从JDK 7(在.ini文件中指定)开始,并且确实也导出了JavaFX JAR,这些UI组件也会崩溃。

  • This whole process works with Eclipse starting with JDK 7 ! 从JDK 7开始,整个过程都可以在Eclipse中使用!
  • I really want to use my Eclipse with JDK 8, but ONLY the Eclipse 我真的很想将Eclipse与JDK 8一起使用,但是只有Eclipse
  • How does Eclipse influence the export process? Eclipse如何影响导出过程? My target platform points to eclipse, but has JDK 7 set on it. 我的目标平台指向eclipse,但是上面设置了JDK 7。

You can try to put a JRE 7 in your product location and test if it runs, remove the entry in the .ini file. 您可以尝试将JRE 7放在产品位置,然后测试它是否运行,请删除.ini文件中的条目。

  • plugins 外挂程式
  • configurations 构型
  • jre 杰瑞
  • ... ...

If this works, your entry in the .ini file is probably wrong. 如果这可行,则您在.ini文件中的输入可能是错误的。

Another thought: "I've also included the JavaFX JAR", where did you include it? 另一个想法:“我还包括JavaFX JAR”,您在哪里包括它? Maybe you need to include it in the JRE. 也许您需要将其包含在JRE中。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM