Setting up Eclipse IDE for Red5 Pro Development

The following steps describe how to setup a new project in the Eclipse IDE that will be runnable under the Red5 Pro Server.

Download the Red5 Pro Server Download the latest Red5 Pro Server!

Register A Red5 Pro Account

If you have not done so already, register for an account at https://account.red5pro.com.

* A Trial Account allows for up to 10 concurrent connections, while the Professional license has no connection limit.


This is an abridged section from the Creating Your First Red5 Application example.


Requirements

The following are required to setup the Red5 Pro Server and to follow along with this example:

The Red5 Pro server requires Java 1.7+ or higher. Install Java JDK 1.7+ or higher if not already installed on your machine.


Eclipse IDE

For the examples, we will be demonstrating how to set up the project in the Eclipse IDE. The steps for setup should be transferrable to the IDE of your choice, as it is the code and method of deployment that we will be more focused on.


Eclipse Workspace Setup

  1. Open the Eclipse IDE into a new workspace •  For the purposes of this example, the new workspace directory will be /Users/red5pro-user/red5prolive
  2. From the main menu, select the File > New > Java Project (may need to choose Other to find this option) Red5 Pro Application
  3. In the Create a Java Project dialog, enter in Red5ProLive for the Project name field Red5 Pro Application
  4. Click Next
  5. In the Java Settings dialog, select the Libraries tab Red5 Pro Application
  6. Click the Add Variable button •  We will be defining our Red5 Pro server install as a library dependency resource
  7. In the New Variable Classpath Entry dialog, click Configure Variables Red5 Pro Application
  8. In the Classpath Variables dialog, click New...
  9. In the New Variable Entry dialog, enter RED5PRO_ROOT for the Name field, and define the Path value as the root of your Red5 Pro server install. For the purposes of this tutorial, that is /Users/red5pro-user/red5pro-server/ Red5 Pro Application
  10. Click OK and OK again until you are navigated back to the New Variable Classpath Entry dialog
  11. From the New Variable Classpath Entry dialog, select the new RED5PRO_ROOT entry and click Extend...
  12. Select the red5-server.jar from the listing and click OK Red5 Pro Application
  13. You will be redirected back to the Java Build Path dialog
  14. Select the new RED5PRO_ROOT entry and click Extend...
  15. Select the /lib/red5-server-common-1.0.8.jar (note, the version number may vary)from the list and click OK
  16. Click Finish

Red5 Pro Application


Next Steps

With the dependencies form the Red5 and Red5 Pro libraries distributed with the Red5 Pro Server properly defined for your project, you can begin developing custom applications to be run under Red5 Pro!

To follow along in a more detailed example of how to begin developing Red5 Pro applications:

Visit Creating Your First Red5 Application


If you have further questions, please contact us at red5pro@infrared5.com