Mac Java错误 [英] Mac Java Error

查看:91
本文介绍了Mac Java错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好。我一直在使用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

展开 | 选择 | Wrap | 行号



键入文件名。喜欢
Type the name of the file. Like
展开 | 选择 | Wrap | 行号



我没有在提示中输入任何内容来覆盖或除了Y和N.
It doesn''t me type anything in the prompt to overwrite or not except for Y and N.



好​​的,请执行以下操作:

OK, do the following:

  1. type cd
  2. 输入 mkdir java
  3. 输入 cd java
  4. 输入 pico
  5. 编写代码
  6. Control-O
  7. 键入 test.java
  8. 按回车
  9. 它不会提示您先覆盖您它可能会在那之后发生。如果是这样,输入 Y
  10. 不会告诉你,这是一个目录
  1. type cd
  2. type mkdir java
  3. type cd java
  4. type pico
  5. write your code
  6. press Control-O
  7. type test.java
  8. press enter
  9. It won''t prompt you to overwrite you the first time, after that it might. If so, type Y
  10. 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆