2010-07-28 54 views
1

有人能夠通過將最新的JFXtras包添加到Netbeans中的項目的正確方式嗎?我不知道我在做什麼錯誤...是否導入不正確,執行不正確,還是隻是簡單地下載錯誤的jar文件。我正在使用JavaFX 1.3和NetBeans 6.9。JFXtras和Netbeans編譯器問題

我已經能夠讓NetBeans識別庫中的組件(我鍵入XCustomNode,它會提示我從org.jfxtras.場景中導入)。但是,嘗試構建/運行時,我得到一個編譯錯誤,如下列:

Note: An internal error has occurred in the OpenJFX compiler. Please file a bug at the Openjfx-compiler issues home (https://openjfx-compiler.dev.java.net/Issues) after checking for duplicates. Include in your report: 
- the following diagnostics 
- file C:\Documents and Settings\me\Local Settings\Temp\javafx_err_4220242024568343160.txt 
- and if possible, the source file which triggered this problem. Thank you. C:\Documents and Settings\me\My Documents\NetBeansProjects\project\src\input\NumberWithLabelNode.fx:24: cannot access com.sun.javafx.runtime.location.ObjectVariable class file for com.sun.javafx.runtime.location.ObjectVariable not found public class NumberWithLabelNode extends XCustomNode { 1 error 

我不認爲我真的需要去該報告的OpenJFX ......我的直覺說我缺少一個文件。

回答

0

不確定你使用的是哪個版本的JFXtras,但是我已經在版本0.7rc以及JavaFX 1.3的基礎上取得了更好的成功。

除了在資料庫,確保公共和控制罐中,我不得不添加miglayout-3.7.jar和擺動工人1.2.jar爲好,可在project downloads page

+0

優秀。我很確定這是我的問題......如果遇到更多問題,我會在這裏回覆。順便說一下......你碰巧知道jfxtras 0.7文檔是否存在? 非常感謝! – Greg 2010-07-29 15:56:48

+0

我能找到的最好的東西是jfxtras 0.6 javadocs http://jfxtras.googlecode.com/svn/site/javadoc/release-0.6/index.html – 2010-07-29 21:40:03

+0

是的,這裏也一樣。讓我有點猶豫,將其納入該項目。再次感謝。 – Greg 2010-07-30 16:07:12

0

問題您所面對的是庫的不正確版本。您正嘗試使用使用JavaFX 1.2。*編譯的JFXtras,並且您的項目使用JavaFX 1.3。 。正如你可以在官方網站上學到的那樣,JavaFX還沒有向後兼容。使用JavaFX 1.3獲取更新的庫或重新編譯源代碼。

+0

謝謝!很確定這是問題所在。我打算給新的JFXtras圖書館一個鏡頭。 – Greg 2010-07-29 15:59:13