If you want the height for an Actor use the getImage() method i.e.
getImage().getHeight()
The GreenfootImage class contains the getHeight method that returns the Height of an image. I am guessing you want the height of an Actors image. Check out the greenfoot docs for GreenfootImage.