Error Codes in My Program

I am getting the error
error: invalid flag: ./Hello
Usage: javac

How do I fix this?

Hey @NancyHeagerty welcome to the forums!

Could you provide a link to your Repl?

2 Likes

https://replit.com/@NancyHeagerty/Hello-World?lite=1#.replit
avoid having spaces in file names, because unfortunately most scripts aren’t tested on such files. And name your class Main instead of Hello World, for replit to run it.

2 Likes