简体   繁体   English

使用E(fx)剪辑并出现JRE错误

[英]Using E(fx)clipse and getting error with JRE

I currently am trying to work with JavaFX and my teach recommended we work with e(fx)clipse. 我目前正在尝试使用JavaFX,我的老师建议我们使用e(fx)clipse。 I uploaded this plug in to my typical eclipse application, but every time I try and create a new project, I get an error that my JRE files cannot be detected. 我将此插件上传到了典型的Eclipse应用程序中,但是每次尝试创建一个新项目时,都会收到一个错误,提示无法检测到我的JRE文件。 I have tried building a new path and configuring my JRE, but nothing is working. 我尝试构建新路径并配置我的JRE,但是没有任何效果。 It just says JRE(unbound). 它只是说JRE(未绑定)。

EDIT: I am creating a new JavaFX project 编辑:我正在创建一个新的JavaFX项目

这是我尝试构建路径时工作区的外观

Does anyone have any idea as to why this is occurring and have any way to fix it? 有谁知道为什么会发生这种现象并有解决办法? Thanks! 谢谢!

Your build path is using an 'Execution Environment' which has not been bound to an actual JRE. 您的构建路径使用的是尚未绑定到实际JRE的“执行环境”。

Open the Preferences and go to the 'Java > Installed JREs > Execution Environments' page. 打开“首选项”,然后转到“ Java>已安装的JRE>执行环境”页面。 Select the 'JavaSE-10' entry and select a suitable JRE. 选择“ JavaSE-10”条目,然后选择合适的JRE。

If there are no suitable JREs for JavaSE-10 you will need to go to the 'Java > Installed JREs' page and Add a Java 10 JRE. 如果没有适用于JavaSE-10的JRE,则需要转到“ Java>已安装的JRE”页面并添加Java 10 JRE。

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

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