权限 – Minecraft jar未标记为可执行文件

我查了几个关于如何安装的教程,但是他们不工作.我做的一切都正确,但后来我明白了:

The file
‘/home/mike/Downloads/minecraft.jar’
is not marked as executable. If this
was downloaded or copied from an
untrusted source, it may be dangerous
to run. For more details, read about
the executable bit.

我使用Sun java runtime 6运行minecraft.jar,但它不起作用:/.任何帮助将不胜感激!

解决方法:

重要的是你的信息:

The file ‘/home/mike/Downloads/minecraft.jar’ is not marked as
executable
. If this was downloaded or copied from an untrusted
source, it may be dangerous to run. For more details, read about the
executable bit.”

命令行

命令:

sudo chmod +x /home/mike/Downloads/minecraft.jar

将使其可执行.请务必阅读邮件的第2部分:确保从受信任的来源获取邮件.

GUI

如果您更容易,您还可以使用Nautilus查看文件并使用richt单击它,打开属性,打开“权限”选项卡,然后勾选以下框:

执行:允许将文件作为程序执行.

其他

从一个非常可靠的来源我被告知你也可以这样做:

java -jar /home/mike/Downloads/minecraft.jar
上一篇:64位 – 我的世界在jdk 1.7.0_u2 x64


下一篇:java – 如何安装Minecraft?