Required Tools Copyright © 2005 Liferay, LLC All Rights Reserved. No material may be reproduced electronically or in print without written permission from Liferay, LLC.
Objectives Required Tools 1.Install Jikes 2.Install Ant 3.Unzip Liferay Source Code
Jikes Jikes is used because it compiles faster than Java’s default compiler. Jikes 1.21 works with JDK Jikes 1.22 works with JDK 1.5.0
Install Jikes 1.Create a folder called jikes-1.22 C:\Java\jikes Download Jikes: hp?group_id= Unzip Jikes (jikes windows.zip) to C:\Java\jikes-1.22
1.Right click My Computer and click Properties Advanced Environment Variables 2.Under System Variables click New Make sure you click New under System variables NOT User variables 3.Variable name: JIKES_HOME Variable value: C:\Java\jikes-1.22 Set JIKES_HOME
Checkpoint
1.Under System Variables click Path then Edit 2.Type %JIKES_HOME%\bin; after %JAVA_HOME%\bin; 3.Do not put spaces in your path. Example: %JAVA_HOME%\bin;%JIKES_HOME%\bin; %SystemRoot%\system32;%SystemRoot%;%System Root%\System32\Wbem;C:\Program Files\ATI Technologies\ATI Control Panel; Add JIKES_HOME to the Path
Install Ant Ant uses build scripts to automate tasks like cleaning out directories, compiling classes and moving files. 1.Download Ant: 2.Unzip Ant (apache-ant bin.zip) to C:\Java
1.Right click My Computer and click Properties Advanced Environment Variables 2.Under System Variables click New Make sure you click New under System variables NOT User variables 3.Variable name: ANT_HOME Variable value: C:\Java\apache-ant Set ANT_HOME
Install Ant
1.Under System Variables click Path then Edit 2.Type %ANT_HOME%\bin; after %JIKES_HOME%\bin; 3.Do not put spaces in your path. Example: %JAVA_HOME%\bin;%JIKES_HOME%\bin; %ANT_HOME%\bin;%SystemRoot%\system32;%Syst emRoot%;%SystemRoot%\System32\Wbem;C:\Progra m Files\ATI Technologies\ATI Control Panel; Add ANT_HOME to the Path
Unzip Liferay Source Code 1.Create a directory called portal C:\Training\liferay\portal 2.Extract the Liferay Portal source code (liferay-portal-src zip) to C:\Training\liferay\portal
Checkpoint At this point, we’ve installed (unzipped) Ant, Jikes and the Liferay Portal source code. Now we’re ready to build the Ext Environment. Before we begin, make sure that file extensions are visible on your computer. 1.Double click My Computer 2.Click Tools Folder Options View 3.Uncheck Hide extensions for known file types
Revision History 08/28/06 Edward ShinAuthor 11/13/06Edward ShinUpdated slides 4, 7, 8 and 11 12/07/06James MinUpdated for Liferay 4.1.3