下载 java 文件后无法打开

After downloading a java file it would not open

注意:这是在 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.

我该如何解决这个问题?

您缺少 space

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