我爲Windows創建了一個JavaFx應用程序,這非常酷。我可以從e(fx)clipse運行它,everthing可以正常工作,但是我無法從項目中創建一個jar文件。 我可以導出它(右鍵單擊 - >導出 - >可運行jar文件)。但是,如果我在MAC OS X上運行jar,在菜單欄中,我會得到「java」menuitem,而不是我的應用程序名稱,而我真的不喜歡它。 我搜索瞭如何隱藏該菜單項,或者只是將其重命名,我發現我必須重命名build.fxbuild文件中的「應用程序標題*」。現在我無法建立它。JAVAFx構建失敗
所以這就是我真正想要的:在Mac OS X中刪除/隱藏/重命名「java」menuitem。 如果您有任何經驗,請與我分享。我會很感激:)。
我收到以下錯誤,當我嘗試運行build.xml文件:
[javac] Compiling 22 source files to C:\Users\Hassan\Desktop\Programming\workspace\Raktar_vevo 2.7\build\classes
[javac] warning: [options] bootstrap class path not set in conjunction with -source 1.7
[javac] Note: C:\Users\Hassan\Desktop\Programming\workspace\Raktar_vevo 2.7\build\src\application\SajátKészlet.java uses unchecked or unsafe operations.
[javac] Note: Recompile with -Xlint:unchecked for details.
[javac] 1 warning
[copy] Copying 12 files to C:\Users\Hassan\Desktop\Programming\workspace\Raktar_vevo 2.7\build\classesinit
-fx-tasks:
[taskdef] Could not load definitions from resource com/sun/javafx/tools/ant/antlib.xml. It could not be found.
do-deploy:
[copy] Copying 20 files to C:\Users\Hassan\Desktop\Programming\workspace\Raktar_vevo 2.7\dist\libs
BUILD FAILED
C:\Users\Hassan\Desktop\Programming\workspace\Raktar_vevo 2.7\build.xml:217: Problem: failed to create task or type javafx:com.sun.javafx.tools.ant:resources
Cause: The name is undefined.
Action: Check the spelling.
Action: Check that any custom tasks/types have been declared.
Action: Check that any <presetdef>/<macrodef> declarations have taken place.
No types or tasks have been defined in this namespace yet
Total time: 22 seconds
** 我用: -Windows 7 64位 -jdk 8 U5 -JAVA_HOME設置 - e(fx)clipse(開普勒),我下載了All-in-one版本(適用於懶惰link)
非常感謝您的幫助!
嗨如何做到這一點,我的意思是我怎麼可以在列表中的JRE JDK?我已經修改了我的eclipse.ini文件,但什麼都沒有發生...... :( – Wolverine