S
S
s2d1ent2021-03-05 22:02:30
Java
s2d1ent, 2021-03-05 22:02:30

What to do with the selection does not contain a main type error?

Vsm hello. I just started learning Java, and on the very first compilation in Eclipse I ran into a problem. I wrote the simplest code to display Hello world in the console, but nothing happens and gives an error: selection does not contain a main type.
I googled the kid, but nothing helped. Tell me what to do.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Roo, 2021-03-05
@xez

Everything is simple.
Buy a book on java.
Reading. You are studying.
How to write hello world will be on the first pages.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question