Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Liferay Beginner's Guide

You're reading from   Liferay Beginner's Guide Quick and easy techniques to build, deploy, and maintain your own Liferay portal with this book and ebook

Arrow left icon
Product type Paperback
Published in Dec 2011
Publisher
ISBN-13 9781849517003
Length 396 pages
Edition Edition
Languages
Arrow right icon
Toc

Table of Contents (19) Chapters Close

Liferay
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
1. Planning Your Portal FREE CHAPTER 2. Installing a Liferay Portal Instance 3. Understanding Portal Basics and Theming 4. Tips and Tricks-Advanced Configuration 5. Building your First Liferay Site 6. Managing Pages, Users, and Permissions 7. Creating and Publishing Content 8. Exploring Communities 9. Setting up an Online Shop 10. Liferay Server Administration PayPal Test Account Configuration
Pop Quiz Answers Index

Time for action – installing JDK


Carry out the following procedure to install the latest version of JDK on your machine:

  1. Go to http://www.oracle.com/technetwork/java/javase/downloads/jdk-6u26-download-400750.html and find a page with the content, as shown in the following screenshot:

  2. Click on the jdk-6u26-windows-i586.exe link. When a window pops up, click on Run.

  3. Click on Next in the next pop-up window.

  4. Accept the default installation folder and click on Next.

  5. Accept the default installation directory for JRE and click on Next.

  6. When the installation is done, click on Finish.

    Now that the JDK is installed, we set the JAVA_HOME variable and put Java commands on the path. The following is the procedure:

  7. Click on the Windows icon at the bottom corner on the left-hand side of the screen.

  8. Right-click on Computer. Click on Properties | Advanced system settings | Environment variables.

  9. Click on New in the System variables section. Define a JAVA_HOME variable and set its value to C:\Program Files\Java\jdk1.6.0_26:

  10. Edit the Path variable in the System variables section. Add %JAVA_HOME%\bin as a value in the Path variable. It should be separated from other values by a semi-colon. A sample value for the Path variable is as follows:

    %JAVA_HOME%\bin;%ANT_HOME%\bin;C:\Program Files\Common Files\Microsoft Shared\Windows Live;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;c:\Program Files\Intel\DMIX;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;c:\Program Files\WIDCOMM\Bluetooth Software\;C:\Program Files\NTRU Cryptosystems\NTRU TCG Software Stack\bin\;C:\Program Files\Wave Systems Corp\Gemalto\Access Client\v5\;C:\Program Files\Common Files\Roxio Shared\DLLShared\;C:\Program Files\Common Files\Roxio Shared\10.0\DLLShared\;C:\Program Files\Windows Live\Shared;C:\Program Files\TortoiseSVN\bin
    
  11. Click on OK to save the settings.

  12. Open a Disk Operating System (DOS) interface. On the command line, enter java-version and press Enter.

What just happened?

The previous screenshot confirms that the JDK has been successfully installed!

Application servers and servlet containers

You can download an application server or servlet container from its website and install the Liferay Portal Web Application Archive (WAR) file and dependency Java Archive (JAR) files in it. Alternatively, if Liferay has already bundled Liferay Portal with an application server or servlet container, you can download that bundle, unzip it, and install it.

Liferay Portal supports the following application servers:

  • Apache Geronimo

  • Borland ES

  • JBoss

  • JonAs

  • Jrun

  • OracleAS

  • Orion

  • Pramati

  • RexIP

  • Sun GlassFish

  • Sun JSAS

  • WebLogic

  • WebSphere

Liferay Portal also runs in the following servlet containers:

  • Jetty

  • Resin

  • Tomcat

For every release, Liferay, Inc. installs Liferay Portal in some open source servlet containers and application servers. The resulting packages are called Liferay Portal bundles, which are ZIP files. A user can download one such bundle, unzip it, and install it. The presently-available bundles are as follows:

  • Tomcat bundle

  • Resin bundle

  • JonAs bundle

  • Jetty bundle

  • JBoss bundle

  • Sun Glassfish bundle

  • Apache Geronimo bundle

Database servers

We can connect Liferay Portal to the following database servers:

  • Apache Derby

  • IBM DB2

  • Firebird

  • Hypersonic

  • Informix

  • InterBase

  • JdataStore

  • MySQL

  • Oracle

  • PostgreSQL

  • SAP

  • SQL Server

  • Sybase

In this book, and at the sample site, we will run Liferay Portal with MySQL database. MySQL is the world's most popular open source database. The current version of Liferay Portal requires MySQL version 5.0 or above.

You have been reading a chapter from
Liferay Beginner's Guide
Published in: Dec 2011
Publisher:
ISBN-13: 9781849517003
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image