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 latest
Red5 Pro Server!
Register for a Developer or Professional Account
If you have not done so already, start an account at https://account.red5pro.com.
* The Developer 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.
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.
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
- Open the Eclipse IDE into a new workspace
• For the purposes of this example, the new workspace directory will be /Users/red5pro-user/red5prolive
- From the main menu, select the File > New > Java Project (may need to choose Other to find this option)
- In the Create a Java Project dialog, enter in Red5ProLive for the Project name field
- Click Next
- In the Java Settings dialog, select the Libraries tab
- Click the Add Variable button
• We will be defining our Red5 Pro server install as a library dependency resource
- In the New Variable Classpath Entry dialog, click Configure Variables
- In the Classpath Variables dialog, click New...
- 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/
- Click OK and OK again until you are navigated back to the New Variable Classpath Entry dialog
- From the New Variable Classpath Entry dialog, select the new RED5PRO_ROOT entry and click Extend...
- Select the red5-server.jar from the listing and click OK
- You will be redirected back to the Java Build Path dialog
- Select the new RED5PRO_ROOT entry and click Extend...
- Select the /lib/red5-server-common-1.0.8.jar (note, the version number may vary)from the list and click OK
- Click Finish
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:
The following sections may aide in troubleshooting any issues may come across in trying the previous examples.
If you have further questions, please contact us at firstname.lastname@example.org