Reputation: 117
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
Can anybody help me with this?
Upvotes: 0
Views: 3366
Reputation: 367
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.
Upvotes: 1
Reputation: 117
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.
Upvotes: 0