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

Question:

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: https://replit.com/@Boineelo

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:

2 Likes

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

https://replit.com/@Boineelo/HelloJavaWorld#Java%20exercises/Rectangle.java

1 Like

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

2 Likes