我已經安裝了JavaFX 2.0 SDK,現在我想用Eclipse來做一個JavaFX應用程序。但是我怎樣才能在Eclipse中使用javafx.*
類?如何在Eclipse中使用JavaFX 2 SDK?
official JavaFX Eclipse plugin似乎是爲JavaFx 1.2和過時。
當我嘗試安裝e(fx)clipse plugin,我得到這個錯誤:
Cannot complete the install because one or more required items could not be found.
Software being installed: efxclipse 0.0.8.201111131640 (at.bestsolution.efxclipse.feature.feature.group 0.0.8.201111131640)
Missing requirement: Eclipse DI integration for JavaFX 0.0.8.201111131640 (at.bestsolution.efxclipse.runtime.di 0.0.8.201111131640) requires 'bundle org.eclipse.e4.core.contexts 0.9.0' but it could not be found
Cannot satisfy dependency:
From: efxclipse 0.0.8.201111131640 (at.bestsolution.efxclipse.feature.feature.group 0.0.8.201111131640)
To: at.bestsolution.efxclipse.runtime.feature.feature.group [0.0.8.201111131640]
Cannot satisfy dependency:
From: FX Runtime 0.0.8.201111131640 (at.bestsolution.efxclipse.runtime.feature.feature.group 0.0.8.201111131640)
To: at.bestsolution.efxclipse.runtime.di [0.0.8.201111131640]
夥計們,還是注意,上述e(fx)clipse插件不是強制性的,而是有用的,並且正在積極開發。所以如果你是Eclipse用戶,你可能想要監視e(fx)clipse作者博客:http://tomsondev.bestsolution.at/ –
我花了一段時間才發現,但是在安裝Java 7u5之後,jfxrt.jar文件是(對於Windows)C:\ Program Files \ Oracle \ JavaFX xx sdk \ rt \ lib \ – Richard
感謝Segrey ...和Richard。找不到任何地方..以爲我失去了它。甲骨文! – HellishHeat