java - could not call class method from another class in eclipse -


i new eclipse , java.please find code below.i have created maven project in eclipse.but not call method class in package.please find code .but code works fine in netbeans.

file 1 :     package config;  public class actionkeywords {                  public static void helo( )           { ............  		}  }    file 2 package:    package executionengine;  import config.actionkeywords;  public class driver{              actionkeywords.helo(); /////////////error //////////             }

eclipse has auto-complete feature. so, in eclipse ide, type "actionkeywords." , wait. helo() method listed automatically? if not remove import statement , try type "actionkeywords". highlight mouse on actionkeywords should prompt import statement. import accordingly , type ".helo()" part. since code works fine on netbeans, problem think import statement.


Comments