Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
Liferay IDE Integration in Eclipse For Portlet Development
Geeta Raghu Vamsi Kotipalli, modified 14 Years ago.
Junior Member
Posts: 58
Join Date: 11/10/11
Recent Posts
Hello ,
Recently i have gone through some of the blogs and sites on how exactly the Liferay IDE get integrated with the Eclipse tool.So here is the Process on how exactly i have done .
1)Get an Eclipse Version might be a indigo version or Hugo version of Eclipse
2)Then Open the Eclipse Application and go to the Help Button and goto Eclipse Marketplace
3)Wait for 2 minutes or so according to your internet Speed and then type Liferay
4)After the Search you can see the Liferay IDE ,Press Install Button.
5)Wait untill it gets all the repositories from the Liferay repository link
6)After Successfull Installation then go to New Project then Go for Liferay Project
7)Here you will see a new Pop up window coming up related in creating the New Project name for the Liferay .
8)Here we have to do two main things
a)Download the Liferay Plugins Sdk and set the Path
b)Download the Liferay Portal with Tomcat Bundled and Set the Path and make it as the Liferay Server
9)Creating of a Theme is So easy that we wont get any errors while creating up the Theme Project but when it comes to Portlet Project we have to keep in mind some steps of making the Portlet Project get started development in Eclipse
10)As Per My Way of Creating the Portlet with no errors i have done it in this way
a)First by command prompt go to the Liferay Plugins src folder ,then to Portlets and Create a Sample Architecture of the Portlets with
./create.sh sample-portlet "Sample Portlet"
this will create the default structure inside the portlets directory.After this Deploy the Folder for getting some more folders with the command "ant direct-deploy"
After this we will be getting the Total Portlet Sample Architecture
11)Now Make the Eclipse to trace out the Path of the Sample Portlet and start Developing up the Code.
I Hope This Helps The most of the People who want to start using the Liferay Ide in Eclipse.
Please Reply to this Post if i have done the Process in a wrong or you feel like i missed a Step.
Thanks
K.G.R Vamsi
Recently i have gone through some of the blogs and sites on how exactly the Liferay IDE get integrated with the Eclipse tool.So here is the Process on how exactly i have done .
1)Get an Eclipse Version might be a indigo version or Hugo version of Eclipse
2)Then Open the Eclipse Application and go to the Help Button and goto Eclipse Marketplace
3)Wait for 2 minutes or so according to your internet Speed and then type Liferay
4)After the Search you can see the Liferay IDE ,Press Install Button.
5)Wait untill it gets all the repositories from the Liferay repository link
6)After Successfull Installation then go to New Project then Go for Liferay Project
7)Here you will see a new Pop up window coming up related in creating the New Project name for the Liferay .
8)Here we have to do two main things
a)Download the Liferay Plugins Sdk and set the Path
b)Download the Liferay Portal with Tomcat Bundled and Set the Path and make it as the Liferay Server
9)Creating of a Theme is So easy that we wont get any errors while creating up the Theme Project but when it comes to Portlet Project we have to keep in mind some steps of making the Portlet Project get started development in Eclipse
10)As Per My Way of Creating the Portlet with no errors i have done it in this way
a)First by command prompt go to the Liferay Plugins src folder ,then to Portlets and Create a Sample Architecture of the Portlets with
./create.sh sample-portlet "Sample Portlet"
this will create the default structure inside the portlets directory.After this Deploy the Folder for getting some more folders with the command "ant direct-deploy"
After this we will be getting the Total Portlet Sample Architecture
11)Now Make the Eclipse to trace out the Path of the Sample Portlet and start Developing up the Code.
I Hope This Helps The most of the People who want to start using the Liferay Ide in Eclipse.
Please Reply to this Post if i have done the Process in a wrong or you feel like i missed a Step.
Thanks
K.G.R Vamsi
Hi Geeta, thanks for sharing! 
After setting up a development enviroment (1-9), my best practice is to use the Liferay Wizard for Portlet Development.
In Eclipse with Liferay IDE or Liferay Developer Studio just use File > New > Liferay Project
One of the most important choices (2nd step in wizard) will be after checking "Create custom portlet class" is the choice of Super Class (3rd step in wizard):
javax.portlet.GenericPortlet OR com.liferay.util.bridges.mvc.MVCPortlet
Usually the GenericPortlet will be a good choice. For more complex portlets (more pages, actions, and logic) the MVCPortlet will be ideal.
Good Luck!
Regards,
Suraj
After setting up a development enviroment (1-9), my best practice is to use the Liferay Wizard for Portlet Development.
In Eclipse with Liferay IDE or Liferay Developer Studio just use File > New > Liferay Project
One of the most important choices (2nd step in wizard) will be after checking "Create custom portlet class" is the choice of Super Class (3rd step in wizard):
javax.portlet.GenericPortlet OR com.liferay.util.bridges.mvc.MVCPortlet
Usually the GenericPortlet will be a good choice. For more complex portlets (more pages, actions, and logic) the MVCPortlet will be ideal.
Good Luck!
Regards,
Suraj