我在 linux 中运行可执行文件时遇到问题。
路径为:root/Downloads/eclipse_BIRT_Report_Designer
当双击文件 eclipse.exe 时,我收到以下错误:
Archive: /root/Downloads/eclipse_BIRT_Report_Designer/eclipse.exe [/root/Downloads/eclipse_BIRT_Report_Designer/eclipse.exe]
End-of-central-directory signature not found. Either this file is not a zipfile, or it constitutes one disk of a multi-part archive. In the latter case the central directory and zipfile comment will be found on the last disk(s) of this archive. note: /root/Downloads/eclipse_BIRT_Report_Designer/eclipse.exe may be a plain executable, not an archive zipinfo: cannot find zipfile directory in one of /root/Downloads/eclipse_BIRT_Report_Designer/eclipse.exe or /root/Downloads/eclipse_BIRT_Report_Designer/eclipse.exe.zip, and cannot find /root/Downloads/eclipse_BIRT_Report_Designer/eclipse.exe.ZIP, period.
foie在属性中设置为“允许执行文件作为程序运行”。
使用终端命令 ./eclipse.exe 时出现以下错误:
[root@localhost eclipse_BIRT_Report_Designer]# ./eclipse.exe bash: ./eclipse.exe: cannot execute binary file
有什么解决办法吗?请保持简单,因为我是新手。
最佳答案
您可能下载了仅适用于 Windows 的错误版本。有一个适用于 Linux 的多合一下载选项,网址为
http://download.eclipse.org/birt/downloads/
并运行可执行文件。
关于java - 在 linux 中运行可执行文件 - 不工作,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41980763/