Einfügen eines Symbols in eine eigenständige JavaFX-Anwendung (.exe)
Befolgen Sie die AnweisungenHier undHier. ich benutzeJDK 7u9 undNetBeans 7.2.1. Ich habe den gesamten Pfad relativ zum Stammordner meines Projekts erstellt (C: \ Benutzer \ Administrator \ Desktop \ icotest \ package \ windows \ icotest.ico). Ich habe es mit einer Größe von 48x48 und 256x256 versucht. Hier ist eine Baumübersicht für meineProjekt namensicotest:
│ build.xml
│ manifest.mf
│
├───build
│ │ built-jar.properties
│ │
│ ├───classes
│ │ └───icotest
│ │ Main$1.class
│ │ Main.class
│ │
│ ├───empty
│ └───generated-sources
│ └───ap-source-output
├───dist
│ │ icotest.html
│ │ icotest.jar
│ │ icotest.jnlp
│ │
│ └───web-files
│ dtjava.js
│ error.png
│ get_java.png
│ get_javafx.png
│ javafx-chrome.png
│ javafx-loading-100x100.gif
│ javafx-loading-25x25.gif
│ upgrade_java.png
│ upgrade_javafx.png
│
├───nbproject
│ │ build-impl.xml
│ │ genfiles.properties
│ │ jfx-impl.xml
│ │ project.properties
│ │ project.xml
│ │
│ ├───configs
│ │ Run_as_WebStart.properties
│ │ Run_in_Browser.properties
│ │
│ └───private
│ │ private.properties
│ │ private.xml
│ │
│ └───configs
│ Run_as_WebStart.properties
│ Run_in_Browser.properties
│
├───package
│ └───windows
│ icotest.ico
│
└───src
└───icotest
Main.java
Das ist wasbuild.xml sieht aus wie:
<target name="-post-jfx-deploy">
<fx:deploy verbose="true" nativeBundles="exe" outdir="${basedir}/${dist.dir}" outfile="${application.title}">
<fx:application name="${application.title}" mainClass="${javafx.main.class}"/>
<fx:resources>
<fx:fileset dir="${basedir}/${dist.dir}" includes="*.jar"/>
<fx:fileset dir="${basedir}/${dist.dir}" includes="lib/*.jar"/>
</fx:resources>
<fx:info title="${application.title}" vendor="${application.vendor}"/>
<fx:preferences shortcut="true"/>
</fx:deploy>
</target>
Egal was ich tue - ich bekomme diese Nachricht immer noch während derdist build Prozess (der aktiviert wirdISS) mit demdebuggen Flagge gesetzt aufwahr im gembuild.xml Datei: "Verwenden der Standardpaketressource [Anwendungssymbol] (fügen Sie package / windows / icotest.ico zum anzupassenden Klassenpfad hinzu)"
Irgendeine Idee, was ich falsch machen könnte? Vielen Dank.