Liferay IDE Installation and Development on Windows Prepared by M&S Consulting Last Modified: December 26, 2010 Contents Background... 1 Eclipse, the Prerequisite... 2 Installing Liferay IDE... 3 Liferay Plugins SDK Installation and Configuration in Liferay IDE... 10 Liferay Portal Configuration in Liferay IDE... 14 Developing and Deploying HelloWorld Portlet in Liferay IDE... 27 Background I am installing Liferay IDE locally on Windows 7 Ultimate 64-Bit for development and prototyping purposes with Liferay 6.0.5 bundled with Tomcat 6.0.26. This guide walks through the following topics: Installing Liferay IDE Liferay Plugins SDK Installation and Configuration in Liferay IDE Liferay Portal Configuration in Liferay IDE Developing and Deploying HelloWorld Portlet in Liferay IDE Copyright 2010 M&S Consulting. All rights reserved. Page 1 of 38
Eclipse, the Prerequisite If you don t already have it, download Eclipse Eclipse Helios IDE for Java EE Developers (see Eclipse versioning conventions) from the Eclipse downloads page. If you do already have it, you might want to follow steps to update Eclipse. Copyright 2010 M&S Consulting. All rights reserved. Page 2 of 38
Installing Liferay IDE Copyright 2010 M&S Consulting. All rights reserved. Page 3 of 38
Page 4 of 38
Page 5 of 38
Page 6 of 38
Page 7 of 38
Page 8 of 38
Page 9 of 38
Liferay Plugins SDK Installation and Configuration in Liferay IDE Copyright 2010 M&S Consulting. All rights reserved. Page 10 of 38
Page 11 of 38
Page 12 of 38
Page 13 of 38
Liferay Portal Configuration in Liferay IDE Copyright 2010 M&S Consulting. All rights reserved. Page 14 of 38
Page 15 of 38
Page 16 of 38
Page 17 of 38
Page 18 of 38
Here, I simply pointed to the Liferay 6.0.5 with Tomcat 6.0.26 bundle that I had downloaded from SourceForge and extracted to C:\liferay-portal-6.0.5. Copyright 2010 M&S Consulting. All rights reserved. Page 19 of 38
Page 20 of 38
Test the Liferay Portal configuration by starting from within Eclipse. Copyright 2010 M&S Consulting. All rights reserved. Page 21 of 38
Page 22 of 38
Console shows that startup was successful. Copyright 2010 M&S Consulting. All rights reserved. Page 23 of 38
Navigate to http://localhost:8080 web browser (in my case, Google Chrome) to verify Liferay Portal was started from within Eclipse. Copyright 2010 M&S Consulting. All rights reserved. Page 24 of 38
You can also navigate to this same Liferay portal home from within Eclipse (though I personally prefer to use my Google Chrome browser instead). Copyright 2010 M&S Consulting. All rights reserved. Page 25 of 38
Page 26 of 38
Developing and Deploying HelloWorld Portlet in Liferay IDE Copyright 2010 M&S Consulting. All rights reserved. Page 27 of 38
Page 28 of 38
Page 29 of 38
Page 30 of 38
Navigate to view.jsp and feel free to modify the contents. Copyright 2010 M&S Consulting. All rights reserved. Page 31 of 38
Deploy to our previously configured Liferay Portal environment. Copyright 2010 M&S Consulting. All rights reserved. Page 32 of 38
Page 33 of 38
Page 34 of 38
Default credentials are: Username: test@liferay.com Password: test Copyright 2010 M&S Consulting. All rights reserved. Page 35 of 38
Page 36 of 38
You can click Add or drag-and-drop the HelloWorldPortlet we created onto the page. Copyright 2010 M&S Consulting. All rights reserved. Page 37 of 38
Page 38 of 38