My Java project isn’t running, all it is doing is saying Hello World
I expect it to say “hello, I am Mr Bit. What is your name?” and after I type my name, it will say, “Nice to know you, [Name], What can I help you with?” and then act as a calculator, but instead it just says “Hello World” like a doof
My device is a MacBook
Replit Profile: https://replit.com/@LagIsHere23
Hey @LagIsHere23, welcome to the forums!
Just click the ⋮ next to “Files” then click “Show hidden files”. Next click on the
.replit file and finally you can change the
entrypoint to whatever file you want to run.
You should also see the docs on how to configure a Repl: https://docs.replit.com/programming-ide/configuring-repl
Alternatively, you can enter
java file.java in the Shell to run that file in the shell.
Hope this helps!
For your high CPU and RAM usage, the RAM/CPU counters can be fairly inaccurate and you shouldn’t face any problems regarding the speed of your Repl. These counters also take into account code intelligence and background processes, which vary from language to language. If you are running out of RAM/CPU power, you could choose to upgrade your current plan or boost your Repl.
That doesn’t really work for java, since you have to modify the
compile part too.
Ok, but the second part works. I have tested it.
The CPU/RAM isn’t really related by the way. It only would be if you got some kind of overflow error (I know that’s not what kind of error it is, but it’s something like that.)