Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • Liferay Development Setup on Windows 8 64 bit

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 1.20k
    Comment on it

    Below document will assist you in creating Liferay Development environment on Windows 8 64 bit OS. Please be noted that you need at least 2 GB RAM for Liferay to work smoothly. For more details on development, customization and consultation, please visit a leading liferay portal development company in India.

    Install Chrome Browser

    If you are already having good browser, you can skip this step else you go with this one.

    https://www.google.com/intl/en/chrome/browser/desktop/index.html?hl=en&brand=CHMA&utm_campaign=en&utm_source=en-IN-ha-bk&utm_medium=ha&utm_term=%2Bdownload%20google%20chrome%20free&gclid=Cj0KEQiA8f6kBRCGhMPFtev8p58BEiQAaMLmqQ-SPiMaynyBxlo50HCXHgcZPRix7KGBzMDn4TR4i-oaArAL8P8HAQ

    Install Java 7

    We have used Java 7, if you are already having Java installed you can skip this also. Liferay Support following JRE:

    1. Java Standard & Enterprise Edition (SE/EE) 5
    2. Java Standard & Enterprise Edition (SE/EE) 6
    3. Java Standard & Enterprise Edition (SE/EE) 7

    Else you can download the version from

    http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html 
    We used 64 bit following version jdk-7u71-windows-x64.

    Next is to set JAVA_HOME in environment variable in Windows 8 OS:

    1. Drag the Mouse pointer to the Right bottom corner of the screen
    2. Click on the Search icon and type: Control Panel
    3. Click on -> Control Panel -> System -> Advanced
    4. Click on Environment Variables, under System Variables,

    Following is what we have used:

    JAVA_HOME = C:\Program Files\Java\jdk1.7.0_71

    Install Eclipse Juno

    Install the Eclipse Juno (Integrated Development Environment) if you are not having one. You can use other eclipse version also but it should be Eclipse Indigo JavaEE package or greater.

    http://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/juno/SR2/eclipse-jee-juno-SR2-win32-x86_64.zip

    Install Liferay

    Download the required files from Liferay. https://www.liferay.com/downloads/liferay-portal/available-releases

    Download Liferay Portal [Bundle with Tomcat] 
    We use following [liferay-portal-tomcat-6.2-ce-ga2-20140319114139101]

    Put it in E:\testing\liferay-portal-tomcat-6.2-ce-ga2-20140319114139101

    Download Liferay SDK – Plugin Sdk

    We used following version liferay-plugins-sdk-6.2

    Put it in E:\testing\liferay-plugins-sdk-6.2

    Next do following:

    1. Run eclipse.exe
    2. When eclipse opens, go to Help > Install New Software...
    3. Click "Add..." button to open Add Site dialog
    4. Type in Liferay IDE for name, and location use one of the following URLs
    5. Select OK
    6. Select the Liferay IDE site from the combo selection box.
    7. When the table refreshes you should see Liferay Tooling category and one entry for Liferay IDE feature, select the checkbox to install the feature.
    8. Click Next and then click Finish to begin the install
    9. After plugins download and install you will have to accept that the content is unsigned and then restart eclipse.
    10. After you restart, go to Help > About Eclipse and you should see a Icon badge for Liferay IDE that shows you have it properly installed.

    alt text

    Next is Liferay Plug-ins SDK Setup

    Before we can begin creating new Liferay site, a Liferay Plug-ins SDK and Liferay Portal must be installed and configured in the IDE.

    1. Open Eclipse with Liferay IDE installed.
    2. Open Preference page for Liferay > Installed SDKs ( Go to Window > Preferences > Liferay > Installed SDKs ).
    3. Add your SDK using the Add button which brings up the Add SDK Dialog:
    4. Browse to the location of your Plug-ins SDK installation. In our case its C:\LiferayServer\liferay-plugins-sdk-6.2.
    5. The default name is the name of the directory but you can change it if you wish.
    6. Select OK and you should see your SDK in the list of Installed SDKs.

    alt text

    Please be noted that multiple SDKs can be added to the preferences but you will need to select at least one SDK to be the default which is represented by the SDK that has the checkbox selected.

    Also if you have version 6.0.4 of Liferay Portal and the Plugin SDK, you will need to change your build.properties file. The SDK plugin assumes you have installed the SDK at the same level (same directory) as the portal directory. In the line

    1. app.server.dir=${project.dir}/../bundles/app_server_name of build.properties you have to change bundles with the name of the Liferay portal installation directory e.g. liferay-portal-6.0.4.

    Otherwise, portlets created with the SDK plugin will not be deployed by Ant.

    Liferay Portal Tomcat Runtime / Server Setup

    1. In eclipse open the Runtime environments preference page (Go to Window > Preferences > Server > Runtime environments).
    2. Click Add to add a new Liferay runtime and find Liferay v6 Tomcat under the Liferay, Inc. category and click Next.
    3. If you have not already downloaded and installed a copy of the Liferay Portal Tomcat bundle then you can download the latest Liferay Portal Tomcat bundle by clicking the "Download and Install..." button within the wizard.
    4. If you used the download option you can skip this step, if not, click Browse and select the location of the liferay-portal-6.0.2 directory.
    5. Once you have selected the Liferay portal directory if it has a bundled JRE then that bundled JRE will be automatically selected as the JRE to use for launching the server. However, if there is no bundled JRE (Mac and Linux users) then you will need to select the JRE to use for launch.
    6. Click finish and you should see the Liferay portal runtime in the list of runtimes in the preference page.

    Click OK to save the runtime preferences.

    If you didn't choose to create a server you will need to create one from the servers view before you can test the server.

    1. Find the Liferay, Inc category and select the Liferay v6 Server and choose the Liferay v6 Runtime that you had previously created.

    Testing the Liferay portal server

    1. Go to the servers view and you should see the new server that was created. right click and choose "Start" or "Debug".
    2. You should see messages appear in the Console view and once it starts, the servers view will update to show that it is "Started" and then, right-click the server and select the (Liferay Portal > Open Portal Home) action.
    3. The eclipse browser should open to the portal home at http://localhost:8080 This process take few minutes to start.

    alt text

    Before we configure the Liferay Server. Install the database.

    Install MySQL

    Install the MySQL database, you can use another other database also if you are having one, liferay support following databases:

    1. IBM DB2
    2. MySQL
    3. Oracle
    4. PostgreSQL
    5. SQL Server

    Sybase

    http://dev.mysql.com/downloads/installer/

    We used following version mysql-installer-community-5.6.22.0.

     

    Login MySQL Workbench and in SQL fire following command.

    GRANT ALL PRIVILEGES ON . TO 'liferay_usr'@'localhost' IDENTIFIED BY 'liferay_pwd' WITH GRANT OPTION;

    Run following command to create database for Liferay.

    create database lportal;

     

    Once Basic Configuration Page is displayed, you can give data similar to following:

    First Name: Chandan

    Last Name: Ahluwalia

    Email: chandan.ahluwalia@evontech.com

     

    Database select MySQL

    User Name: liferay_usr

    Password: liferay_pwd

    After Successful configuration following message will be displayed:

    The configuration was saved in C:/PermitIssuer/LiferayServer/liferay-portal-tomcat-6.2-ce-ga2-20140319114139101/liferay-portal-6.2-ce-ga2/portal-setup-wizard.properties.

     

    Now whole of your Liferay development environment is configured and you can create your own site in it.

    PRix7KGBzMDn4TR4i-oaArAL8P8HAQ

 0 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: