gpt4 book ai didi

javafx - 无法为 linux 创建 javafx 应用程序 .deb 包

转载 作者:行者123 更新时间:2023-12-02 05:28:16 26 4
gpt4 key购买 nike

[fx:deploy] java.io.IOException: Cannot run program "fakeroot" (in directory "/tmp/fxbundler2581933641178636333/images/linux-deb.image"): error=2, No such file or directory
[fx:deploy] at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048)
[fx:deploy] at com.oracle.tools.packager.IOUtils.exec(IOUtils.java:146)
[fx:deploy] at com.oracle.tools.packager.IOUtils.exec(IOUtils.java:138)
[fx:deploy] at com.oracle.tools.packager.IOUtils.exec(IOUtils.java:132)
[fx:deploy] at com.oracle.tools.packager.linux.LinuxDebBundler.buildDeb(LinuxDebBundler.java:846)
[fx:deploy] at com.oracle.tools.packager.linux.LinuxDebBundler.bundle(LinuxDebBundler.java:352)
[fx:deploy] at com.oracle.tools.packager.linux.LinuxDebBundler.execute(LinuxDebBundler.java:898)
[fx:deploy] at com.sun.javafx.tools.packager.PackagerLib.generateNativeBundles(PackagerLib.java:506)
[fx:deploy] at com.sun.javafx.tools.packager.PackagerLib.generateDeploymentPackages(PackagerLib.java:471)
[fx:deploy] at com.sun.javafx.tools.ant.DeployFXTask.execute(DeployFXTask.java:285)
[fx:deploy] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
[fx:deploy] at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
[fx:deploy] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[fx:deploy] at java.lang.reflect.Method.invoke(Method.java:497)
[fx:deploy] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
[fx:deploy] at org.apache.tools.ant.Task.perform(Task.java:348)
[fx:deploy] at org.apache.tools.ant.Target.execute(Target.java:435)
[fx:deploy] at org.apache.tools.ant.Target.performTasks(Target.java:456)
[fx:deploy] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1393)
[fx:deploy] at org.apache.tools.ant.Project.executeTarget(Project.java:1364)
[fx:deploy] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
[fx:deploy] at org.eclipse.ant.internal.launching.remote.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:36)
[fx:deploy] at org.apache.tools.ant.Project.executeTargets(Project.java:1248)
[fx:deploy] at org.eclipse.ant.internal.launching.remote.InternalAntRunner.run(InternalAntRunner.java:452)
[fx:deploy] at org.eclipse.ant.internal.launching.remote.InternalAntRunner.main(InternalAntRunner.java:139)
[fx:deploy] Caused by: java.io.IOException: error=2, No such file or directory
[fx:deploy] at java.lang.UNIXProcess.forkAndExec(Native Method)
[fx:deploy] at java.lang.UNIXProcess.<init>(UNIXProcess.java:248)
[fx:deploy] at java.lang.ProcessImpl.start(ProcessImpl.java:134)
[fx:deploy] at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)
[fx:deploy] ... 24 more

BUILD FAILED
/home/india/Desktop/ReadEdge/build/build.xml:208: Error: Bundler "DEB Installer" (deb) failed to produce a bundle.

Total time: 54 seconds

最佳答案

该错误消息在其谈论“没有这样的文件或目录”时有点误导,因此乍一看,这听起来好像 tmp 中缺少某些东西。目录。

它实际上提示的是fakeroot未安装在您的系统上。假设您正在构建一个类似 ubuntu 的系统,这应该可以解决您的问题:

sudo apt-get install fakeroot
fakeroot对我来说是一个新的。 This link explains why you need it .

关于javafx - 无法为 linux 创建 javafx 应用程序 .deb 包,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29968203/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com