Program only printing Hello World

I’ve read the other posts saying to change the .replit file word Main to the name of the class I want to run. Main is listed several time throughout that code, am I supposed to change it everywhere?
When I did change it everywhere, I still got the same print out of “Hello World”.

Repl link/Link to where the bug appears:

Someone had told me that I could just change the hello world line to state filename.main(args); and it worked over the summer, but I’m having trouble getting it to work now.

code snippet

Hey @LisaHoffman welcome to the forums!

This is because you will have to change the entrypoint. To access this click on the three dots next to where it says Files >, then click Show Hidden Files, click on the .replit file. Go to where it says entrypoint = then copy or type in the file path to the Java file you want to run. I hope this helps!

1 Like

It still ain’t working for Me I did everything you said above it does not work and this is a issue in java

Hi @halalman343 , welcome to the forums!
Could you send the link to your repl?
Thanks!

1 Like

I follow the instruction, I still got Hello world!.

Here is the link. Please instruct me how to run this. Thank you!

https://replit.com/@chidoandrus/Codepath-Session-1-Problem-1#.replit

Hi @chidoandrus !
Could you try running java SubstringCheck.java in the Shell?
Or, try renaming it back to Main.java and Main.classpath.
Hope this helps!