To develop an application, you need a developer environment. Liferay provides a great environment with Liferay Developer Studio.
Let’s get your Liferay development environment installed.
Download and install the Java 7 JDK. Liferay runs on Java, so you need to install it before everything else.
Download Liferay Developer Studio. Installing it is easy: unzip it to a convenient location on your system.
Launch Developer studio by running the
The First Start wizard appears next. This leads you through the process of getting your Liferay Portal runtime installed. The fastest way to do this is with the defaults: leave Configure Liferay Portal EE bundled with the Studio installation checked and click Next.
Browse to select your activation key provided by Liferay and click Next.
Though Liferay Portal ships with an embedded database, as a developer, you’ll want to use a database you can query with your own tools. For this reason, the next page lets you connect the Liferay runtime to any database Liferay supports. Create the database in your DBMS of choice before completing this step. Note that after the wizard completes, you may need to copy your database’s JDBC driver into the
lib/extfolder of the Liferay bundle that ships with Developer Studio. When finished, click Next.
Next, you can connect Studio to Liferay’s Javadocs and source, for code lookups and to help debugging. Browse to the Javadocs or paste in the URL to where they’re stored online (pictured). For source, you can point to a downloaded .zip of the source code or a version checked out from a code repository. Click Finish.
After this, the wizard completes, and you have a fully configured development environment, ready to begin work!
If you don’t have a Liferay enterprise edition activation key or if you want to use an existing installation of Eclipse, continue with the next tutorial on developing apps with Liferay IDE. You can otherwise start Writing Your First Liferay Application.