Hi Vincent! I'm trying to use this library and I got configure it in a virtual machine with Debian installed. I'm using Eclipse IDE and created a java project. I have also included the RXTXcomm jar as a library in the build path. I tried to run an example to obtain a list of comm serial ports available, but when I run the program I don't have any error, just a warning:
Java HotSpot(TM) Client VM warning: You have loaded library /usr/lib/jvm/java-7-oracle/jre/lib/i386/librxtxSerial.so which might have disabled stack guard. The VM will try to fix the stack guard now. It's highly recommended that you fix the library with 'execstack -c <libfile>', or link it with '-z noexecstack'. Stable Library ========================================= Native lib Version = RXTX-2.1-7 Java lib Version = RXTX-2.1-7 Experimental: JNI_OnLoad called. Does it tell you something I missing or doing in a wrong way? I can't find that command *execstack* in the shell nor how to enable the stack guard. I hope you can help me out. Thanks in advance! Regards! El viernes, 17 de febrero de 2012 12:56:15 UTC-6, vincent mayer escribió: > > you will need the rxtx library for talking to the com port. > It is opensource and compatible with sun.comm from sun(oracle)( which > it seems it's not being supported anymore...) > if you have debian or ubuntu install it from aptitude > > sudo apt-get update > > if you havent installed java do > sudo apt-get install openjdk-6-jre openjdk-6-jdk > > for the library do > sudo apt-get install librxtx-java > > and test it with the examples of > http://rxtx.qbang.org/wiki/index.php/Examples > if you have an error like: lib not found > do this > > sudo cp /usr/lib/jni/librxtxSerial-2.2pre1.so /usr/lib/jvm/java-6- > openjdk/jre/lib/arm > sudo mv /usr/lib/jvm/java-6-openjdk/jre/lib/arm/ > librxtxSerial-2.2pre1.so /usr/lib/jvm/java-6-openjdk/jre/lib/arm/ > librxtxSerial.so > > sudo cp /usr/share/java/RXTXcomm-2.2pre2.jar /usr/lib/jvm/java-6- > openjdk/jre/lib/ext > sudo mv /usr/lib/jvm/java-6-openjdk/jre/lib/ext/RXTXcomm-2.2pre2.jar / > usr/lib/jvm/java-6-openjdk/jre/lib/ext/RXTXcomm.jar > > or whatever the version of rxtx look it up in /usr/share/java/ and / > usr/lib/jni/ > > Regards > Vincent. > > On Feb 12, 3:21 am, "Shane | Xenland" <[email protected]> > wrote: > > Great! I've successfully been able to draw pixels on the screen! So > > now if i wanted to send commands through UART with say something like > > Java, How would I go about doing that? Does java natively support uart > > stuff? Will I require any libraries? -- For more options, visit http://beagleboard.org/discuss --- You received this message because you are subscribed to the Google Groups "BeagleBoard" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
