Pregunta

Hello I have a problem that I want to run two distinct instances in one project. One is in Receiver module and second one in Sender. When I try to select Main class for another module in Run/Debug application I get following error. Is it even possible to run like this in idea ? I know this worked in Visual studio when we created new sollution. How about here ? enter image description here

¿Fue útil?

Solución

Do your main method has String[] args?

Remember that a class to be executable must have the following method:

public static void main(String[] args) throws Exception{

}

the throwing part is optional

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top