This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
if you use the Eclipse IDE, go to the market, serach for 'Liferay', install the plugin.
You'll also need an SDK which can be downloaded from Liferay.com
The Liferay CE source helps too.
In the process you'll configure Eclipse so that it knows about the SDK and the liferay runtime, you'll need to configure the SDK so that it knows where the Liferay Runtime lives, and once that is done you can create a new Portlet using the wizard which will deploy and run out of the box.