Cannot find Java - confessions of a linux noob

ok, I’m using a slightly modified version of this script:


>* cd /etc/yum.repos.d/
*>* wget http://centos.karan.org/kbsingh-CentOS-Extras.repo
*>* cd ~/
*>* yum -y install fedora-rpmdevtools
*>* fedora-buildrpmtree
*>* cd /etc/yum.repos.d/
*>* wget http://www.jpackage.org/jpackage.repo
*>* cd ~/
*>* wget http://www.cywh.com/linux/jdk-1_5_0_12-linux-i586.bin
*>* wget http://mirrors.dotsrc.org/jpackage/1.7/generic/non-free/SRPMS/
*>* java-1.5.0-sun-1.5.0.12-1jpp.nosrc.rpm
*>* cp jdk-1_5_0_12-linux-i586.bin ~/rpmbuild/SOURCES/
*>* rpmbuild --rebuild java-1.5.0-sun-1.5.0.12-1jpp.nosrc.rpm
*>* cd ~/rpmbuild/RPMS/i586/
*>* (echo config gpgcheck 0; echo localinstall java-1.5.0-sun*.rpm; echo
*>* run) > yum-cmd
*>* yum -y shell yum-cmd
*>* rm -f yum-cmd
*>* cd ~/
*>* wget http://archive.apache.org/dist/ant/binaries/apache-ant-1.7.0-
*>* bin.tar.gz
*>* cd /usr/local/
*>* tar -zxf ~/apache-ant-1.7.0-bin.tar.gz
*>* mv apache-ant-1.7.0 ant
*>* ln -s /usr/local/ant/bin/ant /usr/bin/ant
*>* useradd myred5
*>* echo "export JAVA_VERSION=1.5" >> /root/.bash_profile
*>* echo "export RED5_USER=myred5" >> /root/.bash_profile
*>* echo "export JAVA_VERSION=1.5" >> /home/myred5/.bash_profile
*>* echo "export RED5_USER=myred5" >> /home/myred5/.bash_profile
*>* cd ~/
*>* wget http://dl.fancycode.com/red5/red5-0.6.2.tar.gz
*>* cd /opt
*>* tar zxf ~/red5-0.6.2.tar.gz
*>* mv red5-0.6.2/ red5
*>* cd ~/
*>* wget http://apache.mirrors.hoobly.com/commons/fileupload/binaries/
*>* commons-fileupload-1.2-bin.tar.gz
*>* wget http://apache.mirrors.hoobly.com/commons/io/binaries/commons-
*>* io-1.3.2-bin.tar.gz
*>* tar -zxf commons-fileupload-1.2-bin.tar.gz
*>* tar -zxf commons-io-1.3.2-bin.tar.gz
*>* mv ~/commons-fileupload-1.2/lib/commons-fileupload-1.2.jar /opt/red5/
*>* lib/
*>* mv ~/commons-io-1.3.2/commons-io-1.3.2.jar /opt/red5/lib/
*>* rm -f -r ~/commons-fileupload-1.2/
*>* rm -f -r ~/commons-io-1.3.2/
*>* echo "commons-fileupload-1.2.jar" >> /opt/red5/lib/library.properties
*>* echo "commons-fileupload-1.2.jar" >> /opt/red5/lib/script.properties
*>* echo "commons-io-1.3.2.jar" >> /opt/red5/lib/library.properties
*>* echo "commons-io-1.3.2.jar" >> /opt/red5/lib/script.properties
*>* cd /opt/
*>* chown -R myred5 /opt/red5/
*>* chgrp -R myred5 /opt/red5/
*>* chmod -R 755 /opt/red5/
*>* cd /opt/red5
*>* su myred5 bash -c "cd /opt/red5/; ant"*

And i cannot figure out where java is being installed so i can set my java_home path… any ideas?

it doesn’t look like it’s copying it into any folder or anything, just compiles the rpm and continues.