How to build with Eclipse
This guide assumes Eclipse 3.1.0 and you have downloaded the
entire Red5 build from the Subversion repository
.
- Start Eclipse
- From the File menu select "import"
- In the Import dialog box select the item "Existing Projects into Workspace" and hit next
- hit the "browse" button next to the "Select root directory" text box
- select the root folder where you downloaded the Red5 repository,(e.g. c:\projects\osflash\red5) and hit ok
- Make sure Red5 is selected in the projects area and hit "Finish"
- Eclipse should automtically build the project, you can force a build from the "project" menu and selecting "build project"
- To run the server, in the package explorer panel, select the "Server' file under src/org.red5.server/Standalone.java,
right click on the file and select "Run As" and select "Java Application"
If you get an error in the console like :
java.net.BindException: Address already in use: bind
at sun.nio.ch.Net.bind(Native Method)
at sun.nio.ch.ServerSocketChannelImpl.bind(Unknown Source)
at sun.nio.ch.ServerSocketAdaptor.bind(Unknown Source)
at org.apache.mina.io.socket.SocketAcceptor.registerNew(SocketAcceptor.java:362)
at org.apache.mina.io.socket.SocketAcceptor.access$800(SocketAcceptor.java:46)
at org.apache.mina.io.socket.SocketAcceptor$Worker.run(SocketAcceptor.java:238)
Exception in thread "main"
Then the socket Red5 wants to run is in use (by FMS for example). To change the default port Red5 listens on edit the conf/red5.properties
and change the property rtmp.host_port value to your desired host and port i.e. :
rtmp.host_port = 0.0.0.0:2935