下载Java文件后,它将无法打开

时间:2019-07-10 08:16:24

标签: java macos minecraft-forge

注意:这是在Mac上

因此,我最近下载了一个Java文件,并在下载后尝试将其打开,提示无法打开Java jar文件并进行检查。查找完教程后,我将以下命令放入终端。

Umairs-MacBook-Air:~ umairahmed$ java -version
java version "11.0.2" 2019-01-15 LTS
Java(TM) SE Runtime Environment 18.9 (build 11.0.2+9-LTS)
Java HotSpot(TM) 64-Bit Server VM 18.9 (build 11.0.2+9-LTS, mixed mode)
Umairs-MacBook-Air:~ umairahmed$ java -jar/Users/umairahmed/Downloads/forge-1.12.2-14.23.5.2768-universal.jar 
Unrecognized option: -jar/Users/umairahmed/Downloads/forge-1.12.2-14.23.5.2768-universal.jar
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.

我该如何解决?

1 个答案:

答案 0 :(得分:4)

您缺少空格

java -jar /Users/.......