JavaFX部署问题

5

我希望部署JavaFX应用程序:

它生成了可执行文件,但存在以下问题:

  • I am not able to set the application icon

  • I am not able to set the custom .iss file or .wix file for the executable

  • Resulting app is installed as Unknown in startup .

  • Resulting app is installed on AppData folder of current user not in program files as other applications

  • It does not create desktop shortcut.

    With verbose output I get following on console:

    add package/windows/sample4deploy.ico to the class path to customize)
    
    add package/windows/sample4deploy.wxs to the class path to customize)
    
    Using default package resource [Inno Setup project file] (add package/windows/sample4deploy.iss to the class path to customize)
    
    Using default package resource [setup dialog icon] (add package/windows/sample4deploy-setup-icon.bmp to the class path to customize)
    

接下来是这些消息:

我在应用程序的根目录和那个Windows文件夹中创建了一个名为 package 的文件夹。

因此,我的路径是package/windows。我在那个文件夹中添加了资源,例如应用程序图标、.wix文件、.iss文件等。

仍然使用默认值

我不知道哪里有问题...

问候,萨迪克


我也有问题,那么你回复你的问题,你是如何解决的?(Eclipse) - HybrisHelp
安装到“Program Files”文件夹里面有没有成功?而不是安装到应用数据文件夹里面? - Jon Onstott
2个回答

4
请更新您的Ant路径:
在我的情况下,依次选择Netbeans->工具->选项->Java->Ant。 添加包含“package文件夹”的文件夹,让Ant可以搜索图标或者图片。 enter image description here

如何在Maven Ant插件中更新此路径?我正在使用Eclipse进行相同的操作,并且正在使用Maven Ant插件。 - Mubasher

1

这解决了Mubasher的问题:

.............. ...........

<plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-antrun-plugin</artifactId>
                <version>1.7</version>
                <executions>
                    <execution>
                        <phase>package</phase>
                        <configuration>

                            <additionalClasspathElements>
                                <additionalClasspathElement>${basedir}</additionalClasspathElement>
                            </additionalClasspathElements>

抱歉,我需要看到完整的英文文本才能翻译。

感谢您的帮助。虽然我没有尝试您的方法,但我成功地在Maven AntRun插件中添加了classpath条目。详见:https://dev59.com/A4Pba4cB1Zd3GeqPup1p#26039897 - Mubasher

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接