简体   繁体   English

如何在Eclipse Mars 2.0中为JavaFX解决“您没有使用Java 8运行eclipse实例”

[英]How to resolve “You are not running your eclipse instance with java 8” for JavaFX in Eclipse Mars 2.0

The error "You are not running your eclipse instance with java 8" appears after installing javaFX in Mars 2.0 on a Windows computer, and states the plugin is shut off because of this. 在Windows计算机上的Mars 2.0中安装javaFX之后,出现错误“您没有使用Java 8运行eclipse实例”,并指出插件已关闭。 How can this be fixed? 如何解决?

The way to resolve the "You are not running your eclipse instance with java 8" issue for Eclipse Mars 2.0, is to: 解决Eclipse Mars 2.0的“您没有使用Java 8运行Eclipse实例”问题的方法是:

  • 1: Go here the place to download java 8 . 1: 这里下载Java 8的地方 It has the number then u for update, and then number for whatever update after it. 它的编号为u,然后为更新,然后编号为所有更新。 Eg. 例如。 I downloaded "Java SE Development Kit 8u171". 我下载了“ Java SE开发工具包8u171”。
  • 2: Find the newly downloaded application and run it. 2:找到新下载的应用程序并运行它。 Eg. 例如。 I found where I saved "jdk-8u171-windows-x64". 我找到了保存“ jdk-8u171-windows-x64”的位置。
  • 3: During installation there dosen't need to be any changes made to the wizard or preferences set, just keep clicking next and agreeing to things. 3:在安装过程中,无需对向导或首选项进行任何更改,只需继续单击“下一步”并同意。
  • 4: When the installation is done, open Eclipse, and you should see the error no longer appears. 4:安装完成后,打开Eclipse,您应该看到错误不再出现。 If you go to File > New > Other the folders presented will now include a folder called JavaFX, from which you can click on, and choose JavaFX project to make a new JavaFX project. 如果转到“文件”>“新建”>“其他”,现在显示的文件夹将包括一个名为JavaFX的文件夹,您可以单击该文件夹,然后选择JavaFX项目以创建一个新的JavaFX项目。

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

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