Problem using SampleMidlet in Eclipse - IMP_NG_EHS5 Configuration (work around) | Thales IoT Developer Community
June 17, 2015 - 11:39pm, 3558 views
I had been using HelloWorld and Gpio5V_lib dem programs in while running in Eclipse. These are provided with the basic EHS5 / EHS6 softare package as described in the ehsx_java_usersguide_v05.pdf. And all was well, they ran in this ****.
However I could not get the SensorLogic agent SampleMidlet to run in Eclipse -- this was already about 3 weeks ago and can't really recall all of the sequence of events. It was probably some "device 0" or "device 1" error that comes up periodically while trying to run in Eclipse. Tried this and that, and eventually compared the HelloWorld and SampleMidlet project properties.
HelloWorld: The Java ME Configuration is set to IMP_NG_EHS5_REMOTE1. That is the setup when the sample project is imported into Eclipse.
SampleMidlet: the Java ME Configuration is set to IMP_NG_EHS5. Which is different.
Solution: in the SampleMidlet, select the IMP_NG_EHS5 entry, hit "edit". In the next dialog, about 3 lines down, there is a drop-down for "Device" where it was set to "IMP_NG_EHS5". Instead select the item "IMP_NG_EHS5_REMOTE1" from the drop down and then the SampleMidlet would run in Eclipse. Of course that is probably only available as a "Device:" because HelloWorld was previously set up in Eclipse.
I wish I could say something more, I have essentially no understanding of what these configurations or devices are -- must be related to the IMP Dbg system which is all still kind of a mystery, but mostly works.