Question

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

Était-ce utile?

La solution

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

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top