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

Was it helpful?

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

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top