Please assist me resolve the error of 'invalid flag: ./Java' so that I can run my code


I have been getting the following error since last week. Please help me resolve it:

Error: invalid flag: ./Java
Usage: javac
Use –help for a list of possible options

Replit Profile:

1 Like

Hey, @Boineelo welcome to the forums!

Can you please provide a link to the repl? This way it is easier for staff and members of the community to help you!

Also see this guide on how to share your code:


Hello @NateDhaliwal . Thank you for the response.
The link to my repl is:

1 Like

avoid having spaces in file/folder names: most scripts, including the run command, aren’t tested on such files.