<div dir="ltr">Just one final update on this.<div><br></div><div>For 64 bit architectures it is very important to build the sources from the rxtx-2.2pre2 release.</div><div><br></div><div>Using the older 2.1-7r2 version you will run into the following problem when serial communication starts :</div><div><br></div><div><span style="color:rgb(0,0,255);font-size:12.8000001907349px"># A fatal error has been detected by the Java Runtime Environment:</span><br style="color:rgb(0,0,255);font-size:12.8000001907349px"><br style="color:rgb(0,0,255);font-size:12.8000001907349px"><br style="color:rgb(0,0,255);font-size:12.8000001907349px"><span style="color:rgb(0,0,255);font-size:12.8000001907349px"># SIGSEGV (0xb) at pc=0x00007fb8b4caec4b, pid=5401, tid=140431283873536</span><br style="color:rgb(0,0,255);font-size:12.8000001907349px"><br style="color:rgb(0,0,255);font-size:12.8000001907349px"><br style="color:rgb(0,0,255);font-size:12.8000001907349px"><span style="color:rgb(0,0,255);font-size:12.8000001907349px"># Problematic frame:</span><br style="color:rgb(0,0,255);font-size:12.8000001907349px"><br style="color:rgb(0,0,255);font-size:12.8000001907349px"><span style="color:rgb(0,0,255);font-size:12.8000001907349px"># C [librxtxSerial.so+0x6c4b] read_byte_array+0x3b</span><br style="color:rgb(0,0,255);font-size:12.8000001907349px"></div><div><br></div><div>But it is solved in rxtx-2.2pre2.</div><div>My serial comms are working great now.</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On 7 September 2016 at 15:06, Loïc Minier <span dir="ltr"><<a href="mailto:loic.minier@ubuntu.com" target="_blank">loic.minier@ubuntu.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Great; now we even have google juice for other people trying to use RXTX with snaps, thanks! :-)</div><div class="gmail_extra"><div><div class="h5"><br><div class="gmail_quote">On Wed, Sep 7, 2016 at 4:04 PM, Jenny Murphy <span dir="ltr"><<a href="mailto:jenny.murphy@episensor.com" target="_blank">jenny.murphy@episensor.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Hi, </div>No, actually the configure file in RXTX needed to be modified to support java 1.7 :<div><br></div><div><br></div><div><div>case $JAVA_VERSION in</div><div><span style="white-space:pre-wrap"> </span>1.2*|1.3*|1.4*|1.5*)</div><div><span style="white-space:pre-wrap"> </span>#fix_parameters $JPATH/jre/lib/javax.comm.prop<wbr>erties</div><div><span style="white-space:pre-wrap"> </span>CLASSPATH=".:\$(TOP):\$(TOP)/s<wbr>rc:"`find $JPATH/ -name RXTXcomm.jar |head -n1`</div><div><span style="white-space:pre-wrap"> </span>RXTX_PATH="\$(JPATH)/jre/lib/\<wbr>$(OS_ARCH)"</div><div><span style="white-space:pre-wrap"> </span>JHOME=$JPATH/"jre/lib/ext"</div></div><div><br></div><div>So the paths were not being set up correctly for me.</div><div><br></div><div>I changed it to </div><div><div>case $JAVA_VERSION in</div><div><span style="white-space:pre-wrap"> </span>1.2*|1.3*|1.4*|1.5*|1.7*)</div></div><div><br></div><div>Thanks a million for your suggestion.</div><span><font color="#888888"><div><br></div><div>Jenny</div><div><br></div></font></span></div><div><div><div class="gmail_extra"><br><div class="gmail_quote">On 7 September 2016 at 15:01, Loïc Minier <span dir="ltr"><<a href="mailto:loic.minier@ubuntu.com" target="_blank">loic.minier@ubuntu.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Hi,</div><div><br></div>I'm guessing the Java version change solved the rebuilding problem?<div><br></div><div>Cheers,</div><div>- Loïc Minier</div></div><div class="gmail_extra"><div><div><br><div class="gmail_quote">On Wed, Sep 7, 2016 at 3:32 PM, Jenny Murphy <span dir="ltr"><<a href="mailto:jenny.murphy@episensor.com" target="_blank">jenny.murphy@episensor.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi all,<div> This is solved . The problem was to do with the Java versions supported by RXTX.</div><span><font color="#888888"><div>Jenny</div></font></span></div><div><div><div class="gmail_extra"><br><div class="gmail_quote">On 7 September 2016 at 12:51, Jenny Murphy <span dir="ltr"><<a href="mailto:jenny.murphy@episensor.com" target="_blank">jenny.murphy@episensor.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi, <div> I am having some difficulty building RXTX (get unsatisfied link errors with the new shared objects and jar file).</div><div>Is there an other alternative to workaround my original problem with the permissions to use lock file?</div><div>Thanks.</div><div><div><div><br></div><div class="gmail_extra"><br><div class="gmail_quote">On 6 September 2016 at 12:48, Loïc Minier <span dir="ltr"><<a href="mailto:loic.minier@ubuntu.com" target="_blank">loic.minier@ubuntu.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi Jenny,<div><br></div><div>The <a href="https://github.com/rxtx/rxtx/blob/development/INSTALL" target="_blank">INSTALL file</a> suggests that RXTX implements custom locking which requires OS integration; because you want your app to be the only one accessing the serial port(s), you should build RXTX with --disable-lockfiles to disable this feature of the library.</div><div><br></div><div>Cheers,</div><div>- Loïc</div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div>On Tue, Sep 6, 2016 at 1:34 PM, Jenny Murphy <span dir="ltr"><<a href="mailto:jenny.murphy@episensor.com" target="_blank">jenny.murphy@episensor.com</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div><div dir="ltr">Hi,<div><br></div><div> I have a java application running in a .snap package.</div><div>The java application is going to access the serial port and uses the RXTX Java library to do this. The RXTX jar is included in the .snap.</div><div><br></div><div>When it runs I get the following error :</div><div><br></div><div><div>check_group_uucp(): error testing lock file creation Error details:Permission deniedcheck_lock_status: No permission to create lock file.</div><div>please see: How can I use Lock Files with rxtx? in INSTALL</div><div><br></div><div><br></div><div>Anyone have any experience of this ?</div><div><br></div><div>Thanks in advance.</div><span><font color="#888888"><div>Jenny</div><div><br></div>-- <br><div><div><strong>Jenny Murphy</strong></div>
<div><strong>EpiSensor, Georges Quay House, Georges Quay, Limerick, Ireland</strong></div>
<div>jenny.murphy<a href="mailto:jenny.murphy@episensor.com" target="_blank">@episensor.com</a> t | <a href="tel:%2B353%20%280%29%2061%20512%20511" value="+35361512511" target="_blank">+353 (0) 61 512 511</a> w | <a href="http://www.episensor.com/" target="_blank">http://www.episensor.com</a></div></div>
</font></span></div></div>
<br></div></div><span><font color="#888888">--<br>
Snapcraft mailing list<br>
<a href="mailto:Snapcraft@lists.snapcraft.io" target="_blank">Snapcraft@lists.snapcraft.io</a><br>
Modify settings or unsubscribe at: <a href="https://lists.ubuntu.com/mailman/listinfo/snapcraft" rel="noreferrer" target="_blank">https://lists.ubuntu.com/mailm<wbr>an/listinfo/snapcraft</a><br>
<br></font></span></blockquote></div><span><font color="#888888"><br><br clear="all"><div><br></div>-- <br><div data-smartmail="gmail_signature"><div dir="ltr">- Loïc</div></div>
</font></span></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div data-smartmail="gmail_signature"><div><strong>Jenny Murphy</strong></div>
<div><strong>EpiSensor, Georges Quay House, Georges Quay, Limerick, Ireland</strong></div>
<div>jenny.murphy<a href="mailto:jenny.murphy@episensor.com" target="_blank">@episensor.com</a> t | <a href="tel:%2B353%20%280%29%2061%20512%20511" value="+35361512511" target="_blank">+353 (0) 61 512 511</a> w | <a href="http://www.episensor.com/" target="_blank">http://www.episensor.com</a></div></div>
</div></div></div></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div data-smartmail="gmail_signature"><div><strong>Jenny Murphy</strong></div>
<div><strong>EpiSensor, Georges Quay House, Georges Quay, Limerick, Ireland</strong></div>
<div>jenny.murphy<a href="mailto:jenny.murphy@episensor.com" target="_blank">@episensor.com</a> t | <a href="tel:%2B353%20%280%29%2061%20512%20511" value="+35361512511" target="_blank">+353 (0) 61 512 511</a> w | <a href="http://www.episensor.com/" target="_blank">http://www.episensor.com</a></div></div>
</div>
</div></div></blockquote></div><br><br clear="all"><div><br></div></div></div><span><font color="#888888">-- <br><div data-smartmail="gmail_signature"><div dir="ltr">- Loïc</div></div>
</font></span></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div data-smartmail="gmail_signature"><div><strong>Jenny Murphy</strong></div>
<div><strong>EpiSensor, Georges Quay House, Georges Quay, Limerick, Ireland</strong></div>
<div>jenny.murphy<a href="mailto:jenny.murphy@episensor.com" target="_blank">@episensor.com</a> t | <a href="tel:%2B353%20%280%29%2061%20512%20511" value="+35361512511" target="_blank">+353 (0) 61 512 511</a> w | <a href="http://www.episensor.com/" target="_blank">http://www.episensor.com</a></div></div>
</div>
</div></div></blockquote></div><br><br clear="all"><div><br></div></div></div><span class="HOEnZb"><font color="#888888">-- <br><div data-smartmail="gmail_signature"><div dir="ltr">- Loïc</div></div>
</font></span></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div><strong>Jenny Murphy</strong></div>
<div><strong>EpiSensor, Georges Quay House, Georges Quay, Limerick, Ireland</strong></div>
<div>jenny.murphy<a href="mailto:jenny.murphy@episensor.com" target="_blank">@episensor.com</a> t | +353 (0) 61 512 511 w | <a href="http://www.episensor.com/" target="_blank">http://www.episensor.com</a></div></div>
</div>