View the Most Wanted LQ Wiki articles.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 11-21-2007, 07:17 PM   #1
Registered: Nov 2006
Distribution: Slackware 12.2
Posts: 36

Rep: Reputation: 15
Start red5 server via "./"

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 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.

chris@dinosaur:red5-0.6.3 $ ant -version
Apache Ant version 1.6.5 compiled on June 2 2005
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)
chris@dinosaur:red5-0.6.3 $ echo $JAVA_HOME
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
chris@dinosaur:red5-0.6.3 $ echo $JAVA_VERSION

I compile and build the server with:

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 ./ & and the server should start, and I should be able to use in some rc script to start red5 as a service. However when I issue the command ./, I get the following error:

chris@dinosaur:red5-0.6.3 $ ./ 
Exception in thread "main" java.lang.NoClassDefFoundError: org/red5/server/Standalone
Any help would be verymuch appreciated.

Kind regards,

Old 11-21-2007, 07:51 PM   #2
Registered: Nov 2006
Distribution: Slackware 12.2
Posts: 36

Original Poster
Rep: Reputation: 15
*** UPDATE ***

I noticed I was using an old version of Apache-ant, so I updated:

chris@dinosaur:red5-0.6.3 $ ant -version
Apache Ant version 1.7.0 compiled on December 13 2006
but the problem still persists.


Old 11-22-2007, 09:06 AM   #3
Registered: Nov 2006
Distribution: Slackware 12.2
Posts: 36

Original Poster
Rep: Reputation: 15
The problem is now resolved -yipee!

First of all I noticed there was a more up-to-date version of Apache-ANT, so I updated to 1.7.0. However, I was still unable to run ./ to start the server.

I'd read somewhere that running ant rather than ant server before running ./red5 worked for some people. This didn't work for me with the old version of ant, but did for this version.

I'm off to do some ant and red5 reading, as clearly I'm missing something.

Old 12-31-2007, 12:01 AM   #4
Registered: Jan 2003
Location: Hong Kong,China
Distribution: Slackware,OpenSUSE
Posts: 472

Rep: Reputation: 30
ceashton,I'm playing around with red5 now,too.

Although I don't seem to find a direct solution to your problem,I created a shell script which changes to the red5 directory and execute works for me.
Old 07-03-2010, 03:02 AM   #5
LQ Newbie
Registered: Apr 2010
Posts: 7

Rep: Reputation: 0
Red5 on linux, centos, redhat


Easiest way to install.

Old 08-08-2010, 06:16 AM   #6
Registered: Oct 2006
Distribution: Ubuntu,Open Suse,Debian,Mac OS X
Posts: 798

Rep: Reputation: 39
Check these also
for CentOS

and Ubuntu

Red5 init script for CentOS
and this one is Red5 start init script for Ubuntu.

Last edited by tkmsr; 08-08-2010 at 06:18 AM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Installing Red5 howto? Soul's Raider Linux - Enterprise 15 12-19-2010 08:09 AM
fdisk reports odd "Start "and "End" sectors on single partition eponymous Linux - Software 3 10-01-2007 04:41 PM
red5 (flash server) build memory issue kurupt Linux - Server 1 09-25-2007 11:44 PM
X Server broken. start w/ "INIT: ld "x" respawning too fast: disabled for 5 minutes&q tektone Linux - Hardware 5 07-25-2007 08:18 PM
Installing Red5 - Problem @ Installing fedora-rpmdevtools Aziz Linux - Software 2 11-04-2006 03:57 PM

All times are GMT -5. The time now is 01:55 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration