본문 바로가기
JAVA/에러

[ 에러 ] Main method is not static in class xxx, please define the main method as

by hak0205 2020. 9. 26.
반응형

Main method is not static in class xxx, please define the main method as

Error: Main method is not static in class xxx, please define the main method as:
   public static void main(String[] args)

 

Process finished with exit code 1

 


해결책

public void main(String[] args) 을 

public static void main(String[] args)으로 변경해줍니다.

 

감사합니다.

 
 
반응형

댓글