简体   繁体   中英

javafx Eclipse Mars install

I have just installed eclipse Mars (4.5) and I have a problem with one old JavaFx project. 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:

Access restriction: The type 'LineChart' is not API (restriction on required library '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. I have other JavaFx project but none got this error.

I am using the latest JDK 1.8 update 45.

I solved my problem by removing JavaFX SDK from the build path and adding it again. I don't understand why it did not work the first time.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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