Я новичок в программировании на Java и работаю на университетских компьютерах с Windows.Я пользователь Mac и у меня проблемы с компиляцией в терминале.Вот ошибки, с которыми я сталкиваюсь:
Last login: Wed Feb 13 11:48:22 on ttys000
Sams-MacBook-Air:~ samsmac$ cd /Users/samsmac/Desktop/Week15
Sams-MacBook-Air:Week15 samsmac$ javac -cp json-simple-1.1.1.jar;. MessageBoardServerV4.java
javac: no source files
Usage: javac <options> <source files>
use -help for a list of possible options
-bash: //: is a directory
: command not found
-bash: //: is a directory
: No such file or directory.java
-bash: //: is a directory
-bash: port: No such file or directory
: command not found
-bash: import: command not found
: command not found
-bash: import: command not found
: command not found
-bash: import: command not found
-bash: //: is a directory
-bash: import: command not found
-bash: //: is a directory
: command not found
-bash: public: command not found
: command not found
-bash: static: command not found
-bash: private: command not found
: command not found
: command not found
-bash: MessageBoardServerV4.java: line 16: syntax error near unexpected token `('
'bash: MessageBoardServerV4.java: line 16: ` public Clock() { t = 0; }
Это компилируется и прекрасно работает в Windows.Любая помощь будет высоко ценится.