This file is indexed.

/usr/share/doc/red5/html/building.html is in red5-doc 1.0~svn4374-3.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
<html><head>
      <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
   <title>Chapter&nbsp;6.&nbsp;Building Red5</title><link rel="stylesheet" type="text/css" href="html.css"><meta name="generator" content="DocBook XSL Stylesheets V1.78.1"><link rel="home" href="index.html" title="Red5 - Reference Documentation"><link rel="up" href="getting-started.html" title="Part&nbsp;I.&nbsp;Getting Started"><link rel="prev" href="libraries.html" title="Chapter&nbsp;5.&nbsp;Red5 Libraries"><link rel="next" href="releasing.html" title="Chapter&nbsp;7.&nbsp;Releasing Red5"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div xmlns="http://www.w3.org/TR/xhtml1/transitional" style="background-color:white;border:none;height:73px;border:1px solid black;"><a style="border:none;" href="http://osflash.org/red5" title="Red5 Open Source Flash Server"><img style="border:none;" src="images/red5-banner.png"></img></a><a style="border:none;" href="http://osflash.org/red5" title="Red5 Open Source Flash Server"><img style="border:none;position:absolute;padding-top:5px;right:42px;" src="images/red5-banner-logo.png"></img></a></div><div class="chapter"><div class="titlepage"><div><div><h2 class="title"><a name="building"></a>Chapter&nbsp;6.&nbsp;Building Red5</h2></div></div></div>
	
	<div class="section"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="d5e1049"></a>6.1.&nbsp;Build Environment Setup</h2></div></div></div>
		
		<div class="section"><div class="titlepage"><div><div><h3 class="title"><a name="d5e1051"></a>6.1.1.&nbsp;Ant</h3></div></div></div>
			
			<p>Apache Ant 1.7 and above is required for building the Red5 project source code. download here 
				<a class="ulink" href="http://archive.apache.org/dist/ant/binaries/" target="_top">http://archive.apache.org/dist/ant/binaries/</a> 
			</p>
			<p>The path to the ant binary must be on your system PATH environment variable (test by 
				typing ant -version at a system prompt) defined, typically </p>
			<div class="literallayout"><p><br>
PATH=$PATH:/usr/local/ant&nbsp;<br>
</p></div>
			<p>You can check this on windows by typing set PATH or on unix by typing echo $PATH </p>
		</div>
		<div class="section"><div class="titlepage"><div><div><h3 class="title"><a name="d5e1058"></a>6.1.2.&nbsp;Java</h3></div></div></div>
			
			<p>Java 1.5 or 1.6 and above is required for running ant, compiling the source and running the 
				Red5 server. </p>
			<p>Download Java 5 
				<a class="ulink" href="http://java.sun.com/j2se/1.5.0/download.html" target="_top">http://java.sun.com/j2se/1.5.0/download.html</a> 
			</p>
			<p>Download Java 6 
				<a class="ulink" href="http://java.sun.com/j2se/1.6.0/download.html" target="_top">http://java.sun.com/j2se/1.6.0/download.html</a> 
			</p>
			<p>You must have the environment variables for JAVA_HOME and JAVA_VERSION defined, 
				typically </p>
			<div class="literallayout"><p><br>
JAVA_HOME=C:\development\j2sdk\1.5.0_07&nbsp;JAVA_VERSION=1.5&nbsp;<br>
</p></div>
		<p>You can check this on windows by typing</p>
		<pre class="screen">
set JAVA_HOME			
		</pre>
		<p>or on unix by typing</p>
		<pre class="screen">
$ echo $JAVA_HOME	
		</pre>
		</div>
		<div class="section"><div class="titlepage"><div><div><h3 class="title"><a name="d5e1071"></a>6.1.3.&nbsp;Red5</h3></div></div></div>
			
			<p>You must have the environment variables for RED5_HOME defined, 
				typically </p>
			<div class="literallayout"><p><br>
RED5_HOME=/www/red5_server<br>
</p></div>
			<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;"><table border="0" summary="Warning"><tr><td rowspan="2" align="center" valign="top" width="25"><img alt="[Warning]" src="../images/admons/warning.png"></td><th align="left">Warning</th></tr><tr><td align="left" valign="top">
				<p>
					FAILURE TO SETUP YOUR ENVIRONMENT VARIABLES WILL PREVENT YOUR FROM BEING ABLE TO BUILD PROPERLY
				</p>
			</td></tr></table></div>
			<div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><table border="0" summary="Note"><tr><td rowspan="2" align="center" valign="top" width="25"><img alt="[Note]" src="../images/admons/note.png"></td><th align="left">Note</th></tr><tr><td align="left" valign="top">
				<p>
					You don't need netbeans or eclipse unless you need an IDE for java. 
					<a class="ulink" href="http://www.netbeans.org" target="_top">Download Netbeans</a> 
					<a class="ulink" href="http://www.eclipse.org" target="_top">Download Eclipse</a>
				</p>
			</td></tr></table></div>
		</div>
	</div>
	<div class="section"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="d5e1081"></a>6.2.&nbsp;Building</h2></div></div></div>
		
		<div class="section"><div class="titlepage"><div><div><h3 class="title"><a name="d5e1083"></a>6.2.1.&nbsp;Getting Red5 Source</h3></div></div></div>
			
			<p>The Red5 source code is available at the 
				<a class="ulink" href="http://code.google.com/p/red5/" target="_top">google code project page</a> and svn repository.
			</p>
			<div class="orderedlist"><ol class="orderedlist" type="1"><li class="listitem">
					<p>With your favourite SVN client check out the source code from svn at this address 
						<a class="ulink" href="http://red5.googlecode.com/svn/java/server/trunk/" target="_top">http://red5.googlecode.com/svn/java/server/trunk/</a> or 
						<a class="ulink" href="https://red5.googlecode.com/svn/java/server/trunk/" target="_top">https://red5.googlecode.com/svn/java/server/trunk/</a> if you have a google code login.
					</p>
				</li><li class="listitem">
					<p>Team members will be added to the google code project group and in your google code login you will find the svn password for committing changes at this address 
						<a class="ulink" href="http://code.google.com/hosting/settings" target="_top">http://code.google.com/hosting/settings</a>. 
					</p>
				</li></ol></div>
		</div>
		<div class="section"><div class="titlepage"><div><div><h3 class="title"><a name="d5e1095"></a>6.2.2.&nbsp;Getting Red5 Demo Applications Source</h3></div></div></div>
			
			<div class="orderedlist"><ol class="orderedlist" type="1"><li class="listitem">
					<p>With your favourite SVN client check out the source code from svn at this address 
						<a class="ulink" href="http://red5.googlecode.com/svn/java/example/trunk/" target="_top">http://red5.googlecode.com/svn/java/example/trunk/</a> or 
						<a class="ulink" href="https://red5.googlecode.com/svn/java/example/trunk/" target="_top">https://red5.googlecode.com/svn/java/example/trunk/</a> if you have a google code login.
					</p>
				</li></ol></div>
		</div>
		<div class="section"><div class="titlepage"><div><div><h3 class="title"><a name="d5e1102"></a>6.2.3.&nbsp;Getting Red5 Flash Demo Source</h3></div></div></div>
			
			<div class="orderedlist"><ol class="orderedlist" type="1"><li class="listitem">
					<p>With your favourite SVN client check out the source code from svn at this address 
						<a class="ulink" href="http://red5.googlecode.com/svn/flash/trunk/" target="_top">http://red5.googlecode.com/svn/flash/trunk/</a> or 
						<a class="ulink" href="https://red5.googlecode.com/svn/flash/trunk/" target="_top">https://red5.googlecode.com/svn/flash/trunk/</a> if you have a google code login.
					</p>
				</li></ol></div>
		</div>
		<div class="section"><div class="titlepage"><div><div><h3 class="title"><a name="d5e1109"></a>6.2.4.&nbsp;Running the ant build</h3></div></div></div>
			
			<p>To build the red5 source simply run the following command from the command line inside 
				the red5 source directory. </p>
			<pre class="screen">
$ ant dist 
		</pre>
		</div>
		<div class="section"><div class="titlepage"><div><div><h3 class="title"><a name="d5e1113"></a>6.2.5.&nbsp;Current Ant Targets</h3></div></div></div>
			
			<div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; "><li class="listitem">
					<p>all - Runs clean, prepare, compile, jar, javadoc targets</p>
				</li><li class="listitem">
					<p>bootstrap - Compile and start the server using the bootstrap class</p>
				</li><li class="listitem">
					<p>checkout - checks out the Red5 server source (requires svnant.jar)</p>
				</li><li class="listitem">
					<p>checkout-all - checks out the entire Red5 project sources from the root level to a specified directory</p>
				</li><li class="listitem">
					<p>clean - cleans up all the files and directories</p>
				</li><li class="listitem">
					<p>compile - Compiles Red5</p>
				</li><li class="listitem">
					<p>compile_core - Build Red5 server sources and downloads java 6 dependancies</p>
				</li><li class="listitem">
					<p>compile_core_compatibility - Build Red5 server sources and downloads java 5 dependancies</p>
				</li><li class="listitem">
					<p>compile_demos - Copies over the root and installer webapp</p>
				</li><li class="listitem">
					<p>compile_script - Compiles scripting sources</p>
				</li><li class="listitem">
					<p>compile_tests - Compiles junit test classes</p>
				</li><li class="listitem">
					<p>compile_war - Compiles Red5 into a war distribution</p>
				</li><li class="listitem">
					<p>console - launches a non-SSL jconsole for managing Red5 in JMX.</p>
				</li><li class="listitem">
					<p>console-ssl - launches a SSL jconsole for managing Red5 in JMX with SSL enabled.</p>
				</li><li class="listitem">
					<p>doc-all - Generate docbook documentation for html-single, multi html and pdf.</p>
				</li><li class="listitem">
					<p>doc-clean - Cleans the docbook files.</p>
				</li><li class="listitem">
					<p>doc-html - Compile reference documentation to chunked html.</p>
				</li><li class="listitem">
					<p>doc-htmlsingle - Compile reference documentation to single html.</p>
				</li><li class="listitem">
					<p>doc-pdf - Compile reference documentation to pdf.</p>
				</li><li class="listitem">
					<p>doc-prepare - Extra preparation for the documentation.</p>
				</li><li class="listitem">
					<p>dist - Make Binary distribution.</p>
				</li><li class="listitem">
					<p>dist-archive - Create archive file for distribution.</p>
				</li><li class="listitem">
					<p>dist-cluster - Create Edge/Origin distribution.</p>
				</li><li class="listitem">
					<p>dist-debian - Create Debian package.</p>
				</li><li class="listitem">
					<p>dist-edge - Builds a Red5 edge distribution.</p>
				</li><li class="listitem">
					<p>dist-origin - Builds a Red5 origin distribution.</p>
				</li><li class="listitem">
					<p>dist-installer - Make Installer distribution.</p>
				</li><li class="listitem">
					<p>dist-macosx - Create Mac OSX installer.</p>
				</li><li class="listitem">
					<p>dist-windows - Create Windows installer.</p>
				</li><li class="listitem">
					<p>dist-redhat - Create Redhat installer.</p>
				</li><li class="listitem">
					<p>ivyclear - Clears out the Ivy cache.</p>
				</li><li class="listitem">
					<p>jar-determine-classpath - Determine classpath for jar file.</p>
				</li><li class="listitem">
					<p>jar - Make Archive.</p>
				</li><li class="listitem">
					<p>javadoc - Generate JavaDoc.</p>
				</li><li class="listitem">
					<p>java6.check - Checks for Java 6. </p>
				</li><li class="listitem">
					<p>prepare - Prepares for building Red5.</p>
				</li><li class="listitem">
					<p>server - Compile and start the server.</p>
				</li><li class="listitem">
					<p>shutdown - Shuts down the running Red5 instance.</p>
				</li><li class="listitem">
					<p>udp_server - Compile and start experimental UDP server.</p>
				</li><li class="listitem">
					<p>run-tests - Run JUnit tests and generate HTML reports.</p>
				</li><li class="listitem">
					<p>run-tests-systemtest - Runs some end-to-end system tests against a test server using a flash client.</p>
				</li><li class="listitem">
					<p>run-tests-server - Run the selftest server.</p>
				</li><li class="listitem">
					<p>svn-add - Add files to svn.</p>
				</li><li class="listitem">
					<p>remotejar - Creates a jar that may be deployed with remote applications.</p>
				</li><li class="listitem">
					<p>retrieve - Retrieves the libraries if needed.</p>
				</li><li class="listitem">
					<p>rtmps_keystore - Creates the keystore file in the conf directory required by RTMPS.</p>
				</li><li class="listitem">
					<p>truststore - Creates a duplicate keystore file and generates a truststore file for jconsole SSL connections.</p>
				</li><li class="listitem">
					<p>upload-snapshot - Uploads a snapshot of Red5 to the repository.</p>
				</li><li class="listitem">
					<p>war_demos - Build wars for demo apps.</p>
				</li><li class="listitem">
					<p>webwar - Make Web Archive. </p>
				</li></ul></div>
		</div>
		<div class="section"><div class="titlepage"><div><div><h3 class="title"><a name="d5e1216"></a>6.2.6.&nbsp;Ant and Ivy</h3></div></div></div>
			
			<p>When cleaning the dependancy libraries using and ant ivy with the following command</p>
			<pre class="screen">
$ ant ivyclear
</pre>
			<p>It is required to run the rebuild of Red5 in a particular way to make sure ivy retrieved the libraries correctly. </p>
			<pre class="screen">
$ ant -Divy.conf.name="java6, eclipse" dist
</pre>
	
		</div>
	</div>
	<div class="section"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="d5e1222"></a>6.3.&nbsp;How to build with eclipse</h2></div></div></div>
		
		<p>This guide assumes eclipse 3.1.0 and you have downloaded the entire red5 build from the 
			subversion repository at 
			<a class="ulink" href="https://red5.googlecode.com/svn/java/server/trunk" target="_top">https://red5.googlecode.com/svn/java/server/trunk</a> 
		</p>
		<div class="section"><div class="titlepage"><div><div><h3 class="title"><a name="d5e1226"></a>6.3.1.&nbsp;Recommended Eclipse Plugins</h3></div></div></div>
			
			<p>The following plugins are recommended or required for building red5 in eclipse.</p>
			<div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; "><li class="listitem">
					<p>IvyIDE - 
						<a class="ulink" href="http://ant.apache.org/ivy/ivyde/download.cgi" target="_top">http://ant.apache.org/ivy/ivyde/download.cgi</a>. See here for installation / update instructions 
					</p>
				</li><li class="listitem">
					<p>Spring IDE - 
						<a class="ulink" href="http://springide.org/project/wiki" target="_top">http://springide.org/project/wiki</a>
					</p>
				</li><li class="listitem">
					<p>Subclipse SVN Plugin - 
						<a class="ulink" href="http://subclipse.tigris.org/" target="_top">http://subclipse.tigris.org/</a>
					</p>
				</li></ul></div>
		</div>
		<div class="section"><div class="titlepage"><div><div><h3 class="title"><a name="d5e1239"></a>6.3.2.&nbsp;Importing the Red5 Project</h3></div></div></div>
			
			<p>There are two ways to import the Red5 project. Either import an already downloaded working copy of the Red5 project or import the project directly from SVN.</p>

			<div class="procedure"><a name="d5e1242"></a><p class="title"><b>Procedure&nbsp;6.1.&nbsp;Import the checked out working copy.</b></p><ol class="procedure" type="1"><li class="step"><p>Start Eclipse.</p></li><li class="step">
					<p>Begin to import project 
					<span class="guimenu">File</span> &#8594; <span class="guimenuitem">Import</span>
					</p>
				</li><li class="step"><p>In the Import dialog box select the item <span class="guimenuitem">Existing Projects into Workspace</span> and hit <span class="guibutton">next</span>.</p></li><li class="step"><p>Hit the <span class="guibutton">browse</span> button next to the <span class="guilabel">Select root directory</span> text box.</p></li><li class="step"><p>Select the root folder where you downloaded the red5 repository,(e.g. c:\projects \osflash\red5 or /www/red5_server) and hit ok.</p></li><li class="step"><p>Make sure red5 is selected in the projects area and hit <span class="guibutton">Finish</span>.</p></li><li class="step"><p>Eclipse should automatically build the project, you can force a build from the menu
					<span class="guimenu">Project</span> &#8594; <span class="guimenuitem">Build Project</span>
					</p>
				</li></ol></div>
			
			<div class="procedure"><a name="d5e1269"></a><p class="title"><b>Procedure&nbsp;6.2.&nbsp;Import the project working copy from SVN. (Subclipse must be installed).</b></p><ol class="procedure" type="1"><li class="step">
					<p>Begin to import project 
					<span class="guimenu">File</span> &#8594; <span class="guimenuitem">Import</span>
					</p>
				</li><li class="step"><p>In the Import dialog box select SVN and then select the item <span class="guimenuitem">Checkout Projects from SVN</span> and hit <span class="guibutton">next</span>.</p></li><li class="step">
					<p>A list of available SVN urls will be available, if it is not available select <span class="guimenuitem">Create a new repository location</span> click <span class="guibutton">Next</span> and enter. 
						<a class="ulink" href="http://red5.googlecode.com/svn/java/server/trunk" target="_top">http://red5.googlecode.com/svn/java/server/trunk</a> or.\
						<a class="ulink" href="https://red5.googlecode.com/svn/java/server/trunk" target="_top">https://red5.googlecode.com/svn/java/server/trunk</a>  if you have a google code login.
					</p>
				</li><li class="step"><p>Click <span class="guibutton">Finish</span>.</p></li><li class="step"><p>Eclipse should automatically build the project, you can force a build from the menu
					<span class="guimenu">Project</span> &#8594; <span class="guimenuitem">Build Project</span>
					</p>
				</li></ol></div>
		</div>
		<div class="section"><div class="titlepage"><div><div><h3 class="title"><a name="d5e1294"></a>6.3.3.&nbsp;Updating the Red5 source from Eclipse.</h3></div></div></div>
			
			<div class="procedure"><a name="d5e1296"></a><p class="title"><b>Procedure&nbsp;6.3.&nbsp;Updating the Red5 source from trunk.</b></p><ol class="procedure" type="1"><li class="step"><p>In eclipse right click the Red5 source project.</p></li><li class="step"><p>Locate to 
					<span class="guimenu">Team</span> &#8594; <span class="guimenuitem">Update</span>
					</p>
				</li><li class="step"><p>The source will be updated from SVN.</p></li><li class="step"><p>Right click the Red5 project and select <span class="guimenuitem">Refresh</span>.</p></li><li class="step"><p>The project should also be cleaned after each update, by the following
					<span class="guimenu">Project</span> &#8594; <span class="guimenuitem">Clean</span>
					</p>
				</li></ol></div>
		</div>
		<div class="section"><div class="titlepage"><div><div><h3 class="title"><a name="d5e1315"></a>6.3.4.&nbsp;</h3></div></div></div>
			
			<div class="procedure"><a name="d5e1317"></a><p class="title"><b>Procedure&nbsp;6.4.&nbsp;Debugging Red5 in Eclipse.</b></p><ol class="procedure" type="1"><li class="step"><p>Click the arrow next to the <span class="guiicon"><img src="images/debug_icon.png"></span> icon menu and then click <span class="guimenuitem">Debug Configurations</span>.</p></li><li class="step"><p>Click <span class="guimenuitem">Java Application</span> in the menu then right click and <span class="guimenuitem">New</span>.</p></li><li class="step"><p>Type a name for the debug configuration (ie <span class="guilabel">Red</span>) and type <span class="guilabel">org.red5.server.Bootstrap</span> as the main class.</p></li><li class="step"><p>Select the <span class="guimenuitem">Arguments</span> tab.</p></li><li class="step"><p>In the <span class="guilabel">Program Arguments enter</span>
					</p><div class="literallayout"><p><br>
-Dlogback.ContextSelector=org.red5.logging.LoggingContextSelector&nbsp;-Dcatalina.useNaming=true&nbsp;&nbsp;-Djava.security.debug=failure<br>
</p></div><p>  
					</p>
				</li><li class="step"><p>In the <span class="guilabel">VM Arguments</span> enter
				</p><div class="literallayout"><p><br>
-cp&nbsp;./conf<br>
</p></div><p>
				</p></li><li class="step"><p>In OSX with JDK 5 and JDK6 to specify JDK6 the PATH variable has to be set. Goto the <span class="guilabel">Environment</span> Tab, add a new variable called PATH, and place this in there.
				</p><div class="literallayout"><p><br>
/System/Library/Frameworks/JavaVM.framework/Versions/1.6/Home/bin<br>
</p></div><p>
				</p></li><li class="step"><p>Click <span class="guibutton">Apply</span> and <span class="guibutton">Close</span>.</p></li><li class="step"><p>Goto the build configure path dialog
					<span class="guimenu">Build Path</span> &#8594; <span class="guimenuitem">Configure Build Path</span>
					</p>
				</li><li class="step"><p>In the <span class="guimenuitem">Source</span> tab choose <span class="guibutton">Add Folder</span>
				and select the <span class="guilabel">src/conf directory</span>.</p></li><li class="step"><p>Make sure "Allow output folders for source folders" is selected.</p></li><li class="step"><p>Under <span class="guilabel">red5_server/src/conf</span>, select <span class="guilabel">Output Folder</span> and choose <span class="guibutton">Edit</span>.</p></li><li class="step"><p>Select <span class="guilabel">Specific Output Folder</span>, select the root directory and choose "create new folder" and choose "conf".</p></li><li class="step"><p>Select conf, the output folder for the Red5 configs will now be placed into red5_server/conf.</p></li><li class="step"><p>With the imported red5 project selected click the debug icon and it will launch the server.</p></li><li class="step"><p>Console logging will appear in the console window.</p></li></ol></div>
			<p>If you get an error in the console like:</p>
			<div class="literallayout"><p>&nbsp;<br>
java.net.BindException:&nbsp;Address&nbsp;already&nbsp;in&nbsp;use:&nbsp;bind&nbsp;at&nbsp;sun.nio.ch.Net.bind(Native&nbsp;<br>
Method)&nbsp;at&nbsp;sun.nio.ch.ServerSocketChannelImpl.bind(Unknown&nbsp;<br>
Source)&nbsp;at&nbsp;sun.nio.ch.ServerSocketAdaptor.bind(Unknown&nbsp;Source)&nbsp;at&nbsp;<br>
org.apache.mina.io.socket.SocketAcceptor.registerNew(SocketAcceptor.java:362)&nbsp;<br>
at&nbsp;org.apache.mina.io.socket.SocketAcceptor.access$800(SocketAcceptor.java:46)&nbsp;<br>
at&nbsp;org.apache.mina.io.socket.SocketAcceptor$Worker.run(SocketAcceptor.java:238)&nbsp;<br>
Exception&nbsp;in&nbsp;thread&nbsp;"main"&nbsp;<br>
</p></div>
			<p>Then the socket red5 wants to run is in use, you can change the socket port in the property rtmp.port in the property file red5.properties.</p>
		</div>
		<div class="section"><div class="titlepage"><div><div><h3 class="title"><a name="d5e1380"></a>6.3.5.&nbsp;Ant, Ivy and Eclipse</h3></div></div></div>
			
			<p>When cleaning the dependancy libraries using ant and ivy with the following command</p>
			<pre class="screen">
$ ant ivyclear
</pre>
			<p>It is required to run the rebuild of Red5 in a particular way to make sure ivy retrieved the libraries correctly. </p>
			<pre class="screen">
$ ant -Divy.conf.name="java6, eclipse" dist
</pre>
			<p>Then back in eclipse right click the <span class="guilabel">ivy.xml</span> in the project and click <span class="guimenuitem">Refresh</span> it will also resolve the libraries in Eclipse.</p>
		</div>
	</div>
</div><div xmlns="http://www.w3.org/TR/xhtml1/transitional" class="navfooter"><hr></hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="libraries.html">Prev</a>&nbsp;</td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right">&nbsp;<a accesskey="n" href="releasing.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">Chapter&nbsp;5.&nbsp;Red5 Libraries&nbsp;</td><td width="20%" align="center"><span style="color:white;font-size:90%;"><a href="http://osflash.org/red5" title="Red5">Red5 Open Source Flash Server</a></span></td><td width="40%" align="right" valign="top">&nbsp;Chapter&nbsp;7.&nbsp;Releasing Red5</td></tr></table></div></body></html>