Posted on Aug 28, 2012
I have received the letter from Andy where he mentions that there is Eclipse plug-in for testing Paho client code. I checked the repository and found it. I think it is pretty useful especially for debugging some simple MQTT client commands to a broker. Here I would like to describe how to build it.
Paho plug-in depends on the client library org.eclipse.paho.client.mqttv3.jar. Instructions how to build it can be found here.
Get sources of MQTT Application Framework:
lynx@wonderland$ git clone git://git.eclipse.org/gitroot/paho/org.eclipse.paho.esf.git
After it finishes a new directory named org.eclipse.paho.esf will appear.
Plug-in files resides in org.eclipse.paho.esf/org.eclipse.paho.client.eclipse.view directory.
In README.txt there is a short description of plug-in itself and how to install and build it. Unfortunately due to luck of update_site/update.site.zip it can't be installed at once and needs to be build manually.
Build instructions in README.txt does not cover all steps. Here is the more detailed description which covers Eclipse 3.8 and Eclipse Juno (but I believe it should work for other versions as well).
When import finishes there will be compilation errors that's because plug-in depends on org.eclipse.paho.client.mqttv3 library. To fix them this library needs to be imported into plug-in project root directory and added to the classpath.
Classpath should be changed through "Plug-in Manifest Editor" view.
org.eclipse.paho.client.mqttv3.jar .
Additional steps needs to be taken:
For Eclipse Juno few more steps needs to be done:
Now Paho plug-in can be started by pressing "Launch an Eclipse application" from the "Plug-in Manifest Editor" view. After Eclipse will be started Paho view can be opened from "Window" -> "Show view" - > "Other ..." -> "Other" -> "Eclipse Paho Client View".
If plug-in is not there please refer to Eclipse wiki.
If plug-in runs and works correctly it can be exported in a jar file as ordinary plug-in, and further deployed into Eclipse:
In latest versions of Eclipse to install plug-in it is enough to place it under "dropins" directory of Eclipse installation directory.
After Eclipse will be started Paho view can be opened from "Window" -> "Show view" - > "Other ..." -> "Other" -> "Eclipse Paho Client View".
If plug-in is not there please refer to Eclipse wiki.
<<<