# How to use newer external libraries in Wowza project

**URL:** <https://community.wowza.com/t/how-to-use-newer-external-libraries-in-wowza-project/36129>\
**Category:** Wowza Developer Dojo\
**Tags:** wowza-streaming-server-java-api\
**Created:** [March 16, 2014, 10:46pm UTC](https://community.wowza.com/t/how-to-use-newer-external-libraries-in-wowza-project/36129 "2014-03-16T22:46:17Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![Simon\_Bailey](https://avatars.discourse-cdn.com/v4/letter/s/ecd19e/32.png) [@Simon\_Bailey](https://community.wowza.com/u/Simon_Bailey)\
**Post date:** [March 16, 2014, 10:46pm UTC](https://community.wowza.com/t/how-to-use-newer-external-libraries-in-wowza-project/36129/1 "2014-03-16T22:46:17Z")

</div>

I want to use HttpComponents/Client 4.3 a newer version (I think) to what Wowza uses. I have tried adding the necessary external jars (httpclient-4.3.3.jar, httpcore-4.3.2.jar) to wowza/lib and restarted wowza but it still throws errors in the ide e.g.

```auto
Description	Resource	Path	Location	Type
The constructor UrlEncodedFormEntity(List<NameValuePair>, Charset) is undefined	MediaWriteListener.java	/MediaWriteListener/src/com/newtriks	line 53	Java Problem
Description	Resource	Path	Location	Type
The method consumeQuietly(HttpEntity) is undefined for the type EntityUtils	MediaWriteListener.java	/MediaWriteListener/src/com/newtriks	line 57	Java Problem

```

Please could someone highlight the exact steps to override older wowza related classes with my external libs?

**Update:**

This seems to be related to [this thread](http://community.wowza.com/t/-/39394) which has an unanswered question posed at the end of the thread. They raise a point which enforces my question. How to manage conflicting (popular) classes with the older dated versions WSE bundles.

I can fix the warnings in the IDE using:

1. Right click Referenced Libraries \> Build Path \> Configure Build Path…

2. Select Order and Export tab.

3. Select external classes and move them to the top.

On the remote wowza EC2 instance it still is not working and throws the below error. Bizarrely locally it works…

```auto
ERROR 500 - invoke(onAppStart): 
java.lang.NoSuchFieldError: INSTANCE: org.apache.http.impl.io.DefaultHttpRequestWriterFactory.<init>(DefaultHttpRequestWriterFactory.java:52)

```

---

_[View the full topic](https://community.wowza.com/t/how-to-use-newer-external-libraries-in-wowza-project/36129)._
