简体   繁体   English

如何为Eclipse Mars正确设置JavaFX?

[英]How do I properly setup JavaFX for Eclipse Mars?

My Java specifications: JRE: 1.8_u60, JDK: 1.8_u60 我的Java规范:JRE:1.8_u60,JDK:1.8_u60

JAVA_HOME is set-up correctly. JAVA_HOME设置正确。

I´ve downloaded and installed the latest Eclipse Mars Java SDK (Eclipse Mars.1 / 4.5.1) from the official Eclipse download page and used the installer. 我从官方的Eclipse下载页面下载并安装了最新的Eclipse Mars Java SDK(Eclipse Mars.1 / 4.5.1)并使用了安装程序。

I used the Eclipse update site from e(fx)clipse to install the JavaFX IDE. 我使用e(fx)clipse中的Eclipse更新站点来安装JavaFX IDE。

As described in the site´s tutorial I should now be able to create FX projects with File > New > Other > JavaFX ... 如网站教程中所述,我现在应该可以使用File> New> Other> JavaFX创建FX项目...

But unfortunatelly I don´t have any option to create an FX project. 但不幸的是,我没有任何选择来创建外汇项目。 There is no sub-section called JavaFX. 没有名为JavaFX的子部分。

How do I set up JFX for Eclipse Mars properly (if my setup does not work at all)? 如何正确设置JFX for Eclipse Mars(如果我的设置根本不起作用)? here is one more similar Question asked. 这是一个更类似的问题问。

Since JavaFX is now on default classpath , you do not need any extra plugin to create a JavaFX application. 由于JavaFX 现在是默认的类路径 ,因此您无需任何额外的插件即可创建JavaFX应用程序。 You can just create a simple Java Project in Eclispe and get started. 您可以在Eclispe中创建一个简单的Java项目并开始使用。

But, e(fx)clipse is recommended to install on Eclipse because of the extra features it adds to the IDE. 但是,建议在Eclipse上安装e(fx)clipse,因为它增加了IDE的额外功能

I just finished installing the e(fx)clipse plugin on my Eclipse Mars to check if your scenario can be reproduced, but unfortunately after installing the plugin & restarting Eclipse, I can create JavaFX projects. 我刚刚在Eclipse Mars上安装了e(fx)clipse插件,以检查你的场景是否可以重现,但不幸的是在安装插件并重新启动Eclipse后,我可以创建JavaFX项目。

You can either try restarting Eclipse or re-install the plugin again. 您可以尝试重新启动Eclipse或重新安装插件。

Remove the installed plugin and try installing it through Marketplace. 删除已安装的插件并尝试通过Marketplace安装它。

Edit after the answer was accepted: Just for clarification, it should also work in the way OP has tried it. 接受答案后编辑:为了澄清,它也应该以OP尝试的方式工作。 Before one tries to troubleshoot why it's not working, it is very convenient to verify that the installation is not working from marketplace either. 在尝试解决为什么它不能正常工作之前,验证安装是否也无法在市场上运行是非常方便的。

As mentioned in previous Question by tomsontom, you can check your status of e(fx)clips bundles. 正如所提到的tomsontom在前面的问题,您可以检查您的E(FX)夹子束的状态。 Or you can use All-In-One Download . 或者您可以使用All-In-One 下载

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

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