I'm trying to get a red5 server running, and although I can test the server, I am unable to start it as a proper service as per the provided instructions. This is what I have been doing so far.
I am using Slackware 12.0, so I downloaded the tarball for all other systems (red5-0.6.3) from
http://osflash.org/red5/063final. I followed the instructions contained within the tarball download. I installed the latest version of
Apache Ant 1.6.5, and
JDK was already installed.
Code:
chris@dinosaur:red5-0.6.3 $ ant -version
Apache Ant version 1.6.5 compiled on June 2 2005
Code:
chris@dinosaur:red5-0.6.3 $ java -version
java version "1.6.0_02"
Java(TM) SE Runtime Environment (build 1.6.0_02-b05)
Java HotSpot(TM) Client VM (build 1.6.0_02-b05, mixed mode, sharing)
Code:
chris@dinosaur:red5-0.6.3 $ echo $JAVA_HOME
/usr/lib/java
Code:
chris@dinosaur:red5-0.6.3 $ ls -ld /usr/lib/java
lrwxrwxrwx 1 root root 11 2007-11-21 18:32 /usr/lib/java -> jdk1.6.0_02
Code:
chris@dinosaur:red5-0.6.3 $ echo $JAVA_VERSION
1.6
I compile and build the server with:
Code:
chris@dinosaur:red5-0.6.3 $ ant server
and after spewing out a lot of message but no errors, about 1 min later I test the server by going to the url
http://my_server:5080/, and it seems to work.
This is fine, but my understanding is that I should be able to run
./red5.sh & and the server should start, and I should be able to use
red5.sh in some rc script to start red5 as a service. However when I issue the command
./red5.sh, I get the following error:
Code:
chris@dinosaur:red5-0.6.3 $ ./red5.sh
Exception in thread "main" java.lang.NoClassDefFoundError: org/red5/server/Standalone
Any help would be verymuch appreciated.
Kind regards,
Chris