-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

These instructions are great. Thank you so much for your help. I'm  
surprised at how much the documentation lacks if this is what a user  
has to go through to get this thing to work.

Unfortunately, this didn't work. I totally removed java from my  
system -- all the links, *everything*. I went through your steps  
exactly as described, with the one exception of the fedora- 
buildrpmtree being included in "redhat-rpm-config," and it still  
doesn't work:

- -----------------------------
[EMAIL PROTECTED] red5]# su myred5 bash -c "cd /opt/red5/; ant"
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/ 
tools/ant/launch/Launcher
[EMAIL PROTECTED] red5]# ./red5.sh
Exception in thread "main" java.lang.NoClassDefFoundError: org/red5/ 
server/Standalone
- -----------------------------

- -----------------------------
[EMAIL PROTECTED] red5]# java -version
java version "1.5.0_12"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_12-b04)
Java HotSpot(TM) Client VM (build 1.5.0_12-b04, mixed mode)
- -----------------------------

This is so frustrating!

Thanks,

Chris Miller
ServerMotion
www.servermotion.com



On Aug 23, 2007, at 12:23 PM, Luke Scott wrote:

> Hi,
>
> You need to install java a special way to make it work. I would
> remove it and start over... I wrote this bash script that will do
> everything:
>
> 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"
>
>
> On Aug 23, 2007, at 9:27 AM, Chris Miller wrote:
>
>> I have installed Java 1.5 and Red5 0.6.2. Now when I try to start it,
>> I get the following:
>>
>> ---------------------------------
>> [EMAIL PROTECTED] red5]# ./red5.sh
>> Exception in thread "main" java.lang.NoClassDefFoundError: org/red5/
>> server/Standalone
>> [EMAIL PROTECTED] red5]#
>> [EMAIL PROTECTED] red5]#
>> [EMAIL PROTECTED] red5]# ant server
>> Exception in thread "main" java.lang.NoClassDefFoundError: org/ 
>> apache/
>> tools/ant/launch/Launcher
>> [EMAIL PROTECTED] red5]#
>> [EMAIL PROTECTED] red5]#
>> [EMAIL PROTECTED] red5]# ant -Djava.target_version=1.5 server
>> Exception in thread "main" java.lang.NoClassDefFoundError: org/ 
>> apache/
>> tools/ant/launch/Launcher
>> ---------------------------------
>>
>> ---------------------------------
>> [EMAIL PROTECTED] red5]# java -version
>> java version "1.5.0_12"
>> Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_12-b04)
>> Java HotSpot(TM) Client VM (build 1.5.0_12-b04, mixed mode, sharing)
>> [EMAIL PROTECTED] red5]# cat /etc/redhat-release
>> CentOS release 5 (Final)
>> ---------------------------------
>>
>> ---------------------------------
>> [EMAIL PROTECTED] red5]# echo $PATH
>> /usr/kerberos/sbin:/usr/kerberos/bin:/usr/lib/courier-imap/sbin:/usr/
>> lib/courier-imap/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/
>> sbin:/usr/bin:/root/bin:/root/bin:/usr/local/ant/bin:/usr/java/bin
>> [EMAIL PROTECTED] red5]# echo $CLASSPATH
>> /usr/local/ant/lib/ant.jar
>> ---------------------------------
>>
>> I'm not exactly sure what else to do, Java is pretty mysterious to
>> me. Any help would be appreciated.
>>
>> Thanks,
>>
>> Chris Miller
>> ServerMotion
>> www.servermotion.com
>>
>>
>>
>>
>> _______________________________________________
>> osflash mailing list
>> [email protected]
>> http://osflash.org/mailman/listinfo/osflash_osflash.org
>
>
> _______________________________________________
> osflash mailing list
> [email protected]
> http://osflash.org/mailman/listinfo/osflash_osflash.org

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (Darwin)

iD8DBQFGzc+9xBwlCB7CRwsRAp/UAJ9YCtytK9SmMngnZkZ10xtDaWc+jwCfQz4h
JmMujR9qa+NMx4mYY/YL0bk=
=H07X
-----END PGP SIGNATURE-----

_______________________________________________
osflash mailing list
[email protected]
http://osflash.org/mailman/listinfo/osflash_osflash.org

Reply via email to