Reputation: 1
Good evening, all. I am currently completing an assignment for my introductory compsci course and I'm trying to run a basic HelloWorld program. However, when typing "javac HelloWorld.java", the message "error: file not found: HelloWorld.java Usage: javac use --help for a list of possible options" keeps popping up. I've scoured the internet and have no idea how to fix this issue using my Linux terminal inside visual studio code. I've saved the file, have opened and reopened it countless times but to no avail. Please, I beg, help me if you have any idea for me to fix this issue.
Upvotes: 0
Views: 1240
Reputation: 31
@Brandon, Just a note, the mentioned error (by you) occurs only if there is no expected file to compile in the specified location.
If HelloWorld
is highlighted in light blue on issuing ls -lha
means it may be a directory and might not be a file. Can you please double check it as mentioned below?
Are you able to navigate into the HelloWorld
directory by using the following command: cd HelloWorld
? If it is, please check what are the files available inside the directory by issuing ls -lha
. Then it might help to proceed further.
Upvotes: 1