我为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