i'am trying to import a subclass of world in a subclass of actor.
I think you need to explain exactly what you are trying to do, as a subclass of world is always a subclass of world and can never be a subclass of actor.
I think erdelf is on the right track (what you asked makes more sense that way). However, whichever way you meant, it would require you to add the JAVA file of the class into a specific folder within the 'Greenfoot/lib' folder.