Comments (13)
Hello Again,
Another reason I have made this "issue" is that the v1.2.1 download keeps failing.
Seth
P.S. Are other people having issues?
from xbee-java.
Hi Seth,
That exception means that you don't have the RXTX library in the Java path. The XBee Java Library needs some extra libraries to work properly. I recommend you to follow the instructions described in the documentation (https://www.digi.com/resources/documentation/digidocs/90001438/Default.htm#tasks/t_config_project_netbeans.htm) to configure your NetBeans project with all the required dependencies.
What do you mean by "the v1.2.1 download keeps failing"? Aren't you able to download it from https://github.com/digidotcom/XBeeJavaLibrary/releases/download/v1.2.1/XBJL-1.2.1.zip?
Regards,
Ruben
from xbee-java.
Hello,
Do I need to put the path as -Djava.library.path=C:\taco\tacoII\libs\native\Windows\win32 or without the C:? I also used the cmd prompt on WIn 10 to see my java -version. It did not state 32 or 64. I am running a 64 bit machine.
Seth
P.S. I am working on a Windows computer for now. Oh and sir, I got the download for v1.2.1 to work finally.
from xbee-java.
Hey Seth,
You can use an absolute or relative path, both ways are fine. If you don't know the architecture of your Java Virtual Machine, try launching the example with the 32-bit native path as you have now. If the example throws an exception with the message Can't load IA 32-bit .dll on a AMD 64-bit platform
, that means that you have a 64-bit JVM, so you should change the path to C:\taco\tacoII\libs\native\Windows\win64
.
Regards,
Ruben
from xbee-java.
Hello,
Thank you for your feedback. I know I am out of line for asking the PATH question. I am sure you are very busy. I appreciate you clearing that info. up for me.
Seth
P.S. If I come across another issue, I will research the idea first this time.
from xbee-java.
Hi Seth,
You're welcome! Don't worry, ask us whatever you want.
Regards,
Ruben
from xbee-java.
Sir,
Thank you for saying so. I actually have an issue. I tried to open a .jar file with Eclipse. I am getting an odd set of error codes in Eclipse when messing with loading .jar files.
I went to the Eclipse forums to get answers but I do not think there are many people that frequent that legacy forum. Anyway, if you have time, please view my submission: https://www.eclipse.org/forums/index.php/t/1089264/. The second photo in the dialog is why I typed up this specific issue.
I know you may not use Eclipse for running Java Software but I thought it was worth a shot.
Seth
P.S. I tried it on NetBeans too. I think I am going to update NetBeans and see what happens afterward.
from xbee-java.
Hi Seth,
Why are you trying to open a .jar file? You don't have to, they are Java libraries which contain compiled code and are needed by the XBee Java Library to work.
I see in the first image that you have already created the Eclipse project and configured the libraries, so the last step is to copy the source code to the src
folder as explained at https://www.digi.com/resources/documentation/digidocs/90001438/Default.htm#tasks/t_add_application_source_code_eclipse.htm.
Regards,
Ruben
from xbee-java.
Hello,
You were right. The software just needed to be added but I received an error. Please view here:
java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path thrown while loading
gnu.io.RXTXCommDriver
Exception in thread "main" java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.loadLibrary0(Unknown Source)
at java.lang.System.loadLibrary(Unknown Source)
at gnu.io.CommPortIdentifier.<clinit>(CommPortIdentifier.java:123)
at com.digi.xbee.api.connection.serial.SerialPortRxTx.open(SerialPortRxTx.java:165)
at com.digi.xbee.api.XBeeDevice.open(XBeeDevice.java:337)
at com.digi.xbee.example.MainApp.main(MainApp.java:22)
Is this because I placed the rxtxSerial .jar file in the wrong path?
Seth
from xbee-java.
Hi Seth,
That's the same error that you reported in your first message. Did you add the RXTX library to the path? Here is explained how to do it in Eclipse: https://www.digi.com/resources/documentation/digidocs/90001438/Default.htm#tasks/t_config_project_eclipse.htm.
Regards,
Ruben
from xbee-java.
Yes Sir,
They changed the IDE some since this was produced, I guess. I had to look around on how to produce the correct PATH. I got the PATH put in and ready. I get an I/O Exception Error.
See here:
C:\Program Files\Java\jre1.8.0_141\lib\gnu.io.rxtx.SerialPorts
IOException!
I looked on my screen and this is what showed up before the above print out on the terminal:
I know this is testing your patience. If you know of this idea, please reply. I will be patient.
Seth
P.S. In the meantime, I will go to the legacy forum on Eclipse and post there.
from xbee-java.
Hello Sir,
I just updated NetBeans. I will attempt this issue another time and get back to you. I was using Netbeans 8.0.2 and just updated to 8.2.0. I will let you know how things go.
Seth
P.S. If there are specific docs. stating specific error codes for Java, please let me know something. I am new to Java and need some support at times. I am really sorry for flooding this post so many times. Please forgive me.
from xbee-java.
Hello Sir,
Sorry for all these posts. I just was told that the Grove Development boards I own, the THT type, do not have processors or chips.
Seth
P.S. I was plugging these boards in with the XBee attached to a computer. I have a Linux machine called the BeagleBone Black. I will plug one of the Grove boards into this machine instead to have a processor to work with.
from xbee-java.
Related Issues (20)
- Library is now crippled with Android dependencies HOT 3
- Receive Timeout doubt HOT 6
- Android code is not compatible with some XBee/USB adapters HOT 1
- XCTU IndexOutOfBounds
- Digi Xbee communication error HOT 11
- Getting InterfaceNotOpenException while sending data HOT 10
- XBee 3 Compatibility HOT 2
- Reading Device Info and channels HOT 3
- what's up with rxtx and rxtx-native HOT 3
- Remote_DIO_Error_XBP9B-DMUT-002
- DataListener not working but PacketListener does HOT 2
- Invalid Operating mode Exception HOT 1
- Trouble with Java Runtime Error - Problem with DLL file? HOT 1
- java.lang.IllegalArgumentException: rxtx.native: Invalid module name: 'native' is not a Java identifier HOT 1
- RXTX Version MIsmatch
- xbee-java crashing with newer java versions HOT 3
- Uncaught exception: java.lang.IllegalArgumentException: 64-bit address cannot be unknown. HOT 3
- DiscoverDevicesSample
- Feature Request: Connecting to IP Gateway
- Xbee RR Java Library issue
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from xbee-java.