不同的操作系统有不同的 dist 包管理器,你可以尝试在你的 Linux 系统中安装 Java 环境, 参考如下
It looks like you are specifying the -cp
argument incorrectly.
On Linux, the path separator character is ":"
not ";"
. The ";"
character separates commands on the command line, assuming that you are using bash or similar as your shell.
It looks like your command has been interpreted as two commands:
$ javac -g -cp ../dist_windows_x86_64/something
$ . GPUGalaxySim.java
The javac
command fails because there are no source filenames on that command line ... just like the error message says.
Then the second command:
The dot command ( "."
) is a built-in shell command that "sources" a file and attempts to interpret it as shell commands.
If you attempt to "source" a file that is actually Java source code, you get nonsense error messages, basically because the shell has no clue what Java code means.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.