I do it all the time in Eclipse... Have you tried debugging? Having an issue w/ it?
It's best to use a Liferay bundle along w/ the Liferay IDE, have your bundle, sdk, portal source, etc registered within the IDE, but it definitely works like a charm.
Firmi prego dentro per inbandierare questo come inadeguato.