简体   繁体   中英

“Error: File Not Found” in Ubuntu 18.04 LTS

So my Ubuntu terminal is claiming that the java file I'm trying to run does not exist. However, it clearly does, and it looks like I'm in the right directory. Here's what I'm trying to compile

试图编译这个突出显示的 java 文件;看起来我在正确的目录中

And here's what happens

Can anybody help me with this?

If you are sure that you are in the right directory, BE SURE that you write the filename Exactly as what it is. Because Linux is case sensitive and for example, if you have a file with name "Sample" and you try to open "sample" file, you will get the error.

if you type manually, try to use Tab button in your keyboard. it will auto-Complete the file/dir name for you. With this way, if you have typo or wrong spelling, Tab does not complete the name and you will know that there is something wrong with what you type in terminal.

Another comment suggested that I use "ls" to see if the terminal can see the file. I got a permission denied error, and used

find. -type d -exec chmod 755 {} \;

to resolve this.

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM