# MQTT and OH2 - not working

**URL:** <https://community.openhab.org/t/mqtt-and-oh2-not-working/1516>\
**Category:** Bindings\
**Tags:** mqtt\
**Created:** [August 13, 2015, 11:08pm UTC](https://community.openhab.org/t/mqtt-and-oh2-not-working/1516 "2015-08-13T23:08:42Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

**Author:** ![marcel\_verpaalen](https://community.openhab.org/user_avatar/community.openhab.org/marcel_verpaalen/32/56968_2.png) [@marcel\_verpaalen](https://community.openhab.org/u/marcel_verpaalen)\
**Post date:** [December 8, 2015, 11:03pm UTC](https://community.openhab.org/t/mqtt-and-oh2-not-working/1516/10 "2015-12-08T23:03:37Z")

</div>

@stefan_bauer

To get mqtt working in OH2 you need to do the follwoing steps

- Copy org.openhab.binding.mqtt-1.8.0-SNAPSHOT.jar from the OH18 addons to the OH2 addons folder
- Copy org.openhab.io.transport.mqtt\_^.jar from the OH18 distribution to the OH2 addons folder (you find it in /server/plugins/ folder)

Add to runtime.cfg your connection to mqtt server e.g.  
mqtt:mymqtt.url=tcp://localhost:1883

Copy your OH1 mqtt lines to the OH2 /conf/item folder

---

_[View the full topic](https://community.openhab.org/t/mqtt-and-oh2-not-working/1516)._
