简体   繁体   English

javafx Eclipse Mars 安装

[英]javafx Eclipse Mars install

I have just installed eclipse Mars (4.5) and I have a problem with one old JavaFx project.我刚刚安装了 eclipse Mars (4.5),但我在使用一个旧的 JavaFx 项目时遇到了问题。 Before installing Mars, I was using Luna and got no problem with my JavaFx projects, now I have the following problem with one project, all the javafx code are underlined with a similar error:在安装 Mars 之前,我使用 Luna 并且我的 JavaFx 项目没有问题,现在我在一个项目中遇到以下问题,所有 javafx 代码都带有下划线并带有类似的错误:

Access restriction: The type 'LineChart' is not API (restriction on required library 'C:\\Program Files\\Java\\jre1.8.0_45\\lib\\ext\\jfxrt.jar')访问限制:'LineChart' 类型不是 API(对所需库'C:\\Program Files\\Java\\jre1.8.0_45\\lib\\ext\\jfxrt.jar'的限制)

I do not know what it means, I tried to refresh the project and reboot Eclipse but the errors do not disappear, I can run my application without any problem though.我不知道这意味着什么,我尝试刷新项目并重新启动 Eclipse,但错误并没有消失,但我可以毫无问题地运行我的应用程序。 I have other JavaFx project but none got this error.我有其他 JavaFx 项目,但没有出现此错误。

I am using the latest JDK 1.8 update 45.我正在使用最新的 JDK 1.8 更新 45。

I solved my problem by removing JavaFX SDK from the build path and adding it again.我通过从构建路径中删除 JavaFX SDK 并再次添加它来解决我的问题。 I don't understand why it did not work the first time.我不明白为什么它第一次不起作用。

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

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