“Error: File Not Found” in Ubuntu 18.04 LTS

試著忘記壹切 提交于 2019-12-11 15:29:24

问题


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

And here's what happens

Can anybody help me with this?


回答1:


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.




回答2:


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.



来源:https://stackoverflow.com/questions/58046484/error-file-not-found-in-ubuntu-18-04-lts

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!