Mac Java错误 [英] Mac Java Error
问题描述
您好。我一直在使用pico开发java程序时遇到问题。我使用了教程中的所有命令,我读到了打开终端并输入:
cd
mkdir java
cd java
pico
我输入代码。当我按Control-O尝试保存时,它会提示我它的位置,它会说:
要写的文件名:
我不知道在哪里保存它所以我输入/ Java /。它然后说:
文件存在溢出?
当我输入Y时它表示错误写入/ Java /是一个目录。我该怎么办?
Hello. I have been having problems using pico to develop java programs. I used all the commands in a tutorial I read saying open up terminal and type:
cd
mkdir java
cd java
pico
and I type in the code. When I try to save it by pressing Control-O it prompts me for where it to be and it says:
File Name to Write:
I have no idea where to save it so I typed in /Java/. It then says:
File Exists OVERWRITE ?
and when I type in Y it says Error writing /Java/ is a directory. What do I do?
推荐答案
你好。我一直在使用pico开发java程序时遇到问题。我使用了教程中的所有命令,我读到了打开终端并输入:
cd
mkdir java
cd java
pico
我输入代码。当我按Control-O尝试保存时,它会提示我它的位置,它会说:
要写的文件名:
我不知道在哪里保存它所以我输入/ Java /。它然后说:
文件存在溢出?
当我输入Y时它表示错误写入/ Java /是一个目录。我该怎么办?
Hello. I have been having problems using pico to develop java programs. I used all the commands in a tutorial I read saying open up terminal and type:
cd
mkdir java
cd java
pico
and I type in the code. When I try to save it by pressing Control-O it prompts me for where it to be and it says:
File Name to Write:
I have no idea where to save it so I typed in /Java/. It then says:
File Exists OVERWRITE ?
and when I type in Y it says Error writing /Java/ is a directory. What do I do?
输入文件名。喜欢
Type the name of the file. Like
键入文件名。喜欢
Type the name of the file. Like
我没有在提示中输入任何内容来覆盖或除了Y和N.
It doesn''t me type anything in the prompt to overwrite or not except for Y and N.
好的,请执行以下操作:
OK, do the following:
- type cd
- 输入 mkdir java
- 输入 cd java
- 输入 pico
- 编写代码
- 按 Control-O
- 键入 test.java
- 按回车
- 它不会提示您先覆盖您它可能会在那之后发生。如果是这样,输入 Y
- 它不会告诉你,这是一个目录
- type cd
- type mkdir java
- type cd java
- type pico
- write your code
- press Control-O
- type test.java
- press enter
- It won''t prompt you to overwrite you the first time, after that it might. If so, type Y
- It won''t tell you, that it''s a directory
是,你试图在目录中写文件,但 over 目录(用文件替换目录)。这就是它给你错误的原因。
问候,
Nepomuk
The thing is, you were trying to write the file not in the directory but over the directory (replace the directory with the file). That''s why it gives you the error.
Greetings,
Nepomuk
这篇关于Mac Java错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!