Add JbossPortalHome/..../deploy/jboss-portal.sar/lib/portlet-api-lib.jar, portal-portlet-lib.jar, portal-core-lib.jar. in classpath.
Everything is same except that you will have to write some jboss-specific descriptors.
(The JARs I listed is how I do, may be there are some other JARs too).
I put all those jars in my classpath. I still can't compile
Thanks for your help
Check the classpath again. portlet-api-lib contains classes for GenericPortlet, portal-core-lib contains classes for JbossPortlet. I've been using them fine here. Make sure you specify each JAR seperately with correct delimeters in classpath.