Saturday 3 November 2012

liferay Portal server, SDK Plugin Instalation and Integration with Eclipse IDE

1. Download Liferay portal community edition bundled with tomcat server from following link.Liferay CE Download.
Liferay bundled with Tomcat

2. Download SDK plugin from the same above link:
SDK plug in
3.Download Liferay IDE from follwing link.Liferay IDE Download
Liferay IDE
4. Extract the file you downloaded from step-1 and step-2

5.Start your eclipse and point to new workspace.(If you don't have eclipse download it)

6.once eclipse started go to help-->Install New Software.

7. A new window will open, than click on add button, than one more popup window will open.
pop up window in eclipse

8. Than in the popup click on Archive and browse liferay zip file you downloaded in step-3 

9.after this click ok in the popup, than popup will hide and in the first window click on select all than click next and than one more popup will come in that click on yes than click on finish.

10. after this goto window in eclipse-->open perspective-->others-->Liferay than click ok.

11.after this your window will set to Liferay perspective.

12.than in server section right click-->new-->server, than new popup will come like this.
popup window in eclipse

13. in popup select Liferay v 6.1(tomact7)( beacuse liferay portal you downloaded in step one is come tomcat version-7), after that you can change server name(optional), than click next.

14. than one more popup will come, than click on browse than select tomcat from extracted folder of liferay bundled with tomcat zip file. and also liferay is come with jre you can select that as your runtime JRE.

popup in eclipse

15. than click next and finish.

16. Now you integrate the portal server with Eclipse, than you start server by right click on server or by click on start button.

17.after this your sever will start and it is initially pointed to HSQL DB, a URL is automatically opened in browser.

18. in this fill all credentials, and very impotently in this step you can change DB to any other DB, by clicking on change database, in database part of that opened page.

19. than after that click on install server wait for some time than your Liferay portal server will installed successfully, than view your portal and login to it by using credential you entered while installing portal server.

21. if you changed DB in step-18, all table will created in DB that you mentioned in URL, than in next time you restarted you server it will point that DB. if you not changed DB it will point HSQL in subsequent restart.

22. Than next step is installing SDK plug in. for this in your eclipse goto window-->preference, after this popup will come in that select Liferay-->Installed plugin SDK, after this in rgith side click on ADD button, than you will get one more popup in that click on browse select Extracted SDK Plugin folder than clik OK, OK.
23. after this is successfully installed SDK plugin and configured to your eclipse.

24. after this download ECJ.jar file ECJ JAR DOWNLOAD , put into ant class path, for this in your eclipse goto window-->preferences-->Ant-->Runtime after this click on add external jar  and browse your downloaded ecj.jar file and click ok.(ECJ JAR help to create build file and build war and act as compiler)

25. Now you successfully installed liferay portal and integrated with eclipse.

26. For creating Portlet In Eclipse and deploying inside Liferay Portal Click Here