how to setup “Main Class” in “Run Configurations” in Eclipse

前端 未结 6 1362
甜味超标
甜味超标 2020-12-02 00:19

In a Java project, there have two java files has main method. The absolute paths for these two java files are:

C:\\Desktop\\project1\\src\\com\\pre\\moveposi         


        
6条回答
  •  臣服心动
    2020-12-02 00:42

    if the method has a main method look down the Package Explorer, select the file you want to run (that has a main) right click it, selected Run As, select Java application.

提交回复
热议问题