Although the build instructions are quite complete, one always gets stuck on some little detail - too small or obvious to be mentioned in the documentation. So we put together the steps needed to build Open Portal on a fresh installation of RHEL 4 (tested with RHEL 4U2).
1. Install JDK 1.5.x (eg. 1.5.0_14)
(curerntly doesn't work with 1.6.x)
2. The ant-related packages are not part of standard RHEL distribution. Download them to a temporary directory and go to that directory.
http://ftp.redhat.com/pub/redhat/linux/enterprise/4/en/RHDS3/i386/RPMS/xml-commons-1.3.03-5jpp_1rh.noarch.rpm
http://ftp.redhat.com/pub/redhat/linux/enterprise/4/en/RHDS3/i386/RPMS/xml-commons-jaxp-1.3-apis-1.3.03-5jpp_1rh.noarch.rpm
http://ftp.redhat.com/pub/redhat/linux/enterprise/4/en/RHDS3/i386/RPMS/xerces-j2-2.7.1-3jpp_1rh.noarch.rpm
http://ftp.redhat.com/pub/redhat/linux/enterprise/4/en/RHDS3/i386/RPMS/xml-commons-resolver12-1.3.03-5jpp_1rh.noarch.rpm
http://ftp.redhat.com/pub/redhat/linux/enterprise/4/en/RHDS3/i386/RPMS/ant-1.6.5-1jpp_3rh.noarch.rpm
http://ftp.redhat.com/pub/redhat/linux/enterprise/4/en/RHDS3/i386/RPMS/ant-nodeps-1.6.5-1jpp_3rh.noarch.rpm
http://ftp.redhat.com/pub/redhat/linux/enterprise/4/en/RHDS3/i386/RPMS/xalan-j2-2.7.0-2jpp_2rh.noarch.rpm
http://ftp.redhat.com/pub/redhat/linux/enterprise/4/en/RHDS3/i386/RPMS/ant-trax-1.6.5-1jpp_3rh.noarch.rpm
run commands
$ rpm -ivh xml-commons-1.3.03-5jpp_1rh.noarch.rpm
$ rpm -ivh xml-commons-jaxp-1.3-apis-1.3.03-5jpp_1rh.noarch.rpm
$ rpm -ivh xerces-j2-2.7.1-3jpp_1rh.noarch.rpm xml-commons-resolver12-1.3.03-5jpp_1rh.noarch.rpm
$ rpm -ivh ant-1.6.5-1jpp_3rh.noarch.rpm
$ rpm -ivh ant-nodeps-1.6.5-1jpp_3rh.noarch.rpm
$ rpm -ivh xalan-j2-2.7.0-2jpp_2rh.noarch.rpm
$ rpm -ivh ant-trax-1.6.5-1jpp_3rh.noarch.rpm
3. (Optional, for image building) Download Java ES Update 1 and extract it to a temporary directory (e.g. /export/jes)
4. Set environment variable JAVA_HOME to the location of installed JDK
5. Set environment variable JES_LOCATION to the location of extracted Java ES
(e.g. /export/jes/Linux_x86)
***********************************************************
* BUILDING *
***********************************************************
1. run command
$ svn subversion
If you need a proxy to connect to the net, set it in $HOME/.subversion/servers (in the [global] section)
[global]
http-proxy-exceptions = *.czech.sun.com
http-proxy-host = 192.168.4.4
http-proxy-port = 8000
2. Set appropriate proxy for ANT
e.g.
$ export ANT_OPTS="-Dhttps.proxyHost=192.18.4.4 -Dhttps.proxyPort=8000 -Dhttp.proxyHost=192.18.4.4 -Dhttp.proxyPort=8000"
3. Run command
$ svn checkout https://portal.dev.java.net/svn/portal/trunk/portal portal --username guest
(only hit Enter when asked for password. PS bits will be downloaded to ./portal)
4. Go to the ./portal directory
5. Run command
$ ant package
*************************
* BUILDING IMAGE *
*************************
1. Go to the portal/image directory
2. Run command
$ ant
The image will be created in portal/image
1. Install JDK 1.5.x (eg. 1.5.0_14)
(curerntly doesn't work with 1.6.x)
2. The ant-related packages are not part of standard RHEL distribution. Download them to a temporary directory and go to that directory.
http://ftp.redhat.com/pub/redhat/linux/enterprise/4/en/RHDS3/i386/RPMS/xml-commons-1.3.03-5jpp_1rh.noarch.rpm
http://ftp.redhat.com/pub/redhat/linux/enterprise/4/en/RHDS3/i386/RPMS/xml-commons-jaxp-1.3-apis-1.3.03-5jpp_1rh.noarch.rpm
http://ftp.redhat.com/pub/redhat/linux/enterprise/4/en/RHDS3/i386/RPMS/xerces-j2-2.7.1-3jpp_1rh.noarch.rpm
http://ftp.redhat.com/pub/redhat/linux/enterprise/4/en/RHDS3/i386/RPMS/xml-commons-resolver12-1.3.03-5jpp_1rh.noarch.rpm
http://ftp.redhat.com/pub/redhat/linux/enterprise/4/en/RHDS3/i386/RPMS/ant-1.6.5-1jpp_3rh.noarch.rpm
http://ftp.redhat.com/pub/redhat/linux/enterprise/4/en/RHDS3/i386/RPMS/ant-nodeps-1.6.5-1jpp_3rh.noarch.rpm
http://ftp.redhat.com/pub/redhat/linux/enterprise/4/en/RHDS3/i386/RPMS/xalan-j2-2.7.0-2jpp_2rh.noarch.rpm
http://ftp.redhat.com/pub/redhat/linux/enterprise/4/en/RHDS3/i386/RPMS/ant-trax-1.6.5-1jpp_3rh.noarch.rpm
run commands
$ rpm -ivh xml-commons-1.3.03-5jpp_1rh.noarch.rpm
$ rpm -ivh xml-commons-jaxp-1.3-apis-1.3.03-5jpp_1rh.noarch.rpm
$ rpm -ivh xerces-j2-2.7.1-3jpp_1rh.noarch.rpm xml-commons-resolver12-1.3.03-5jpp_1rh.noarch.rpm
$ rpm -ivh ant-1.6.5-1jpp_3rh.noarch.rpm
$ rpm -ivh ant-nodeps-1.6.5-1jpp_3rh.noarch.rpm
$ rpm -ivh xalan-j2-2.7.0-2jpp_2rh.noarch.rpm
$ rpm -ivh ant-trax-1.6.5-1jpp_3rh.noarch.rpm
3. (Optional, for image building) Download Java ES Update 1 and extract it to a temporary directory (e.g. /export/jes)
4. Set environment variable JAVA_HOME to the location of installed JDK
5. Set environment variable JES_LOCATION to the location of extracted Java ES
(e.g. /export/jes/Linux_x86)
***********************************************************
* BUILDING *
***********************************************************
1. run command
$ svn subversion
If you need a proxy to connect to the net, set it in $HOME/.subversion/servers (in the [global] section)
[global]
http-proxy-exceptions = *.czech.sun.com
http-proxy-host = 192.168.4.4
http-proxy-port = 8000
2. Set appropriate proxy for ANT
e.g.
$ export ANT_OPTS="-Dhttps.proxyHost=192.18.4.4 -Dhttps.proxyPort=8000 -Dhttp.proxyHost=192.18.4.4 -Dhttp.proxyPort=8000"
3. Run command
$ svn checkout https://portal.dev.java.net/svn/portal/trunk/portal portal --username guest
(only hit Enter when asked for password. PS bits will be downloaded to ./portal)
4. Go to the ./portal directory
5. Run command
$ ant package
*************************
* BUILDING IMAGE *
*************************
1. Go to the portal/image directory
2. Run command
$ ant
The image will be created in portal/image