including an icon into a self-contained JavaFX application (.exe)

前端 未结 2 718
不思量自难忘°
不思量自难忘° 2020-12-01 14:39

Followed the instructions here and here. I am using JDK 7u9 and NetBeans 7.2.1. What I did was create the whole path relative to my project

2条回答
  •  温柔的废话
    2020-12-01 15:16

    Found the answer here. It appears that the guidelines posted on the Oracle's website are currently mismatching the actual deployment scenarios available. Namely, when dealing with NetBeans, ant is unaware of the current directory that is presumed to be your root project. As it has been suggested in the according forum thread - simply add the directory containing "package/windows/${projectname}.ico" to ant's classpath and it will pick up the relevant resource, even though the tutorial claims that this should happen automatically due to the existing (?) addition of '.' to the build script.

    todo

提交回复
热议问题