Question: I am new to eclipse and Java.Please find the code below.I have created maven project in eclipse.But i could not call a method from the class which is in another package.Please find the code .But this code works fine in netbeans.

```html
FILE 1 : 

package config;
public class ActionKeywords {

         public static void helo( )
         { ............
  }
}

FILE 2 with another package:

package executionEngine;
import config.ActionKeywords;
public class driver{

    ActionKeywords.helo(); /////////////ERROR //////////

}
```

Answer: 
Replace this:

```
obj_Actionkeywords.helo();

```

with this:

```
Actionkeywords.helo();

```

Also put this call in a method!

```
public static void main (String[] args) {
    Actionkeywords.helo();
}

```
`helo()` is a static method of `ActionKeywords` class.

All static method can access without creating object and we can access static method directly by `<class-name>.methodName();`

so you can try like

```
  ActionKeywords.helo();

```