How to build with eclipse
This guide assumes eclipse 3.1.0 and you have downloaded the entire red5 build from the subversion repository at http://svn1.cvsdude.com/osflash/red5
- 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/Server.java , right click on the file and select "Run As" and select "Java Application"
- Red 5 will start running
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, you can change the socket and I will write this up later today once I speak with Luke.