Alternatives to Red5plugin?

6 views
Skip to first unread message

red5_beginner

unread,
Jan 27, 2010, 4:31:39 PM1/27/10
to red5

Is there another way to build applications that use Red5 without using
the Red5plugin?
If so, can you please post instructions?


I CANNOT GET THE RED5PLUGIN TO WORK:
Please see my thread about the Red5plugin, I cannot compile with it
because it cannot find the javac compiler, because the build.xml in
Red5plugin is pointing to incorrect location for javac compiler:

http://groups.google.com/group/red5interest/browse_thread/thread/6a66119e3d24656e/2e08bf12e0aea845#2e08bf12e0aea845


Thanks!

Trevor Burton

unread,
Jan 27, 2010, 4:51:28 PM1/27/10
to red5in...@googlegroups.com
Sorry you're having such problems getting things working.

I've just been over the thread you quoted - apologies, but i didn't see this one before otherwise i'd certainly have replied to you to help.

First, i don't think the problems are in build.xml - i'm assuming you're talking about the build.xml for building red5 itself? at least that's what it looks like from the snippets you posted - if so, can you run the build targets ('dist' for example) from the command line successfully?

Are you trying to build Red5 itself or a web application?

The red5plugin is designed to build the web applications and deploy them to your Red5 installation, not build red5 itself.

Sorry, if you know this, i'm not trying to patronise you, just trying to figure out where you're at so i can help

T
--
Trevor Burton
http://www.flashmonkey.org
http://www.infrared5.com

red5_beginner

unread,
Jan 27, 2010, 5:28:05 PM1/27/10
to red5

I think that what I was trying to do was to "build a
distribution" (probably that means I'm trying to build red5 itself,
maybe?)

I was following along with this video, doing everything it says to do:
http://www.youtube.com/watch?v=N3KYd_Xz_U4
(I checked out the source using SVN, then imported it into eclipse
(4:23 of the video), then tried to build it with ANT (7:09 on the
video) and I got the error)

Yes, I am talking about the build.xml for Red5 itself....it is located
in the source I checked out using SVN.

How do I run the build targets (dist) from the command line (what do I
type in)?
Where is dist located? Is that where I originally installed Red5, or
is that where I checked out the Red5 source using SVN.

Thanks for your reply.
I am new at this, and not understanding a lot of it, and not used to
using the command prompt.

Trevor Burton

unread,
Jan 27, 2010, 5:52:50 PM1/27/10
to red5in...@googlegroups.com
ok, so i think you might be right, it's pointing to the wrong place for the java compiler. You've set it up on your path but when you try and run it from eclipse it's using a different set of properties - it could be that Eclipse is trying to use a JRE instead of a JDK

if you go into the Window->Preferences (Pc) or Eclipse->Preferences (mac) menu - expand the 'Java' section and click on 'INstalled JREs'

you'll see a list of all the Java runtimes and dev kits you've got set up in Eclipse... if all you see is stuff that begins with 'jre' then you're missing the compiler (among other things) so you'll need to hit 'Add'->'Standard VM' and import the location of your SDK

set that as the default (by ticking the box next to it) and try building again.

if that fails you can always try building from the command line in the meantime with the following instructions


Open a command prompt/terminal window

you'll need to use the 'cd' command to 'change directory' to get to where you checked out red5 source

so if you're at

C:\Users\Trevor

and you checked Red5 out into

C:\Projects\Red5

you'd type

cd ../../Projects/Red5

and you'll get where you need to be.

then type

ant dist

if you get an error complaining that it doesn't know what Ant is you'll need to google for ant and download it and get it onto your system path. The instructions for that are on the Apache Ant site - so shouldn't be too difficult.

if it runs and builds Red5 for you sucessfully you'll find it's created a folder called /dist and copied everything you need to run Red5 into it.

So you'll be able to type

cd dist
red5.bat

and start up Red5.


The Red5Plugin is something you'll use once you've started developing applications for Red5 - it compiles and deploys them (into the /dist/webapps directory) for you when you're developing.

i'm assuming here that you're on windows - if you're not the commands are pretty much the same except you'll want to run

./red5.sh

to start Red5 once it's built

hope that helps - if not let me know and i'll try and help you further tomorrow :)

T

red5_beginner

unread,
Jan 28, 2010, 11:19:12 PM1/28/10
to red5
Thanks very much for your help!

You were right...the problem was that I needed to put javac in my
path.
Actually I had tried that......but the reason it did not work right
away is that I needed to restart eclipse. Apparently, if you have
eclipse open while making changes to your Environment Variables, then
eclipse will not see the changes to your Environment Variables, until
you close it and open it again.

(I had eclipse open while adding javac to my path... so eclipse did
not see that I added javac to my path until I shut eclipse down and
then opened it again... when I opened it again it saw that I added
javac to the path, and the compile worked!).

Your explanation of ant dist was very helpful.

Thanks!

Trevor Burton

unread,
Jan 29, 2010, 3:50:56 AM1/29/10
to red5in...@googlegroups.com
Apparently, if you have
eclipse open while making changes to your Environment Variables, then
eclipse will not see the changes to your Environment Variables, until
you close it and open it again

yeah, that goes for just about everything - including the command prompt itself.

Glad to hear you're up and running now. Keep hitting the list if you have any other problems.

T
Reply all
Reply to author
Forward
0 new messages