문제

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

도움이 되었습니까?

해결책

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top