adinov 1 Posted March 12, 2013 Share Posted March 12, 2013 Just downloaded the latest binary (/energia-0101E0009), and tried to run energia. After I set the working directory, the following error comes up and there is no GUI. What is wrong??? java.lang.UnsatisfiedLinkError: /home/ad/Desktop/energia-0101E0009/lib/librxtxSerial.so: /home/ad/Desktop/energia-0101E0009/lib/librxtxSerial.so: wrong ELF class: ELFCLASS32 (Possible cause: architecture word width mismatch) thrown while loading gnu.io.RXTXCommDriver Exception in thread "main" java.lang.UnsatisfiedLinkError: /home/ad/Desktop/energia-0101E0009/lib/librxtxSerial.so: /home/ad/Desktop/energia-0101E0009/lib/librxtxSerial.so: wrong ELF class: ELFCLASS32 (Possible cause: architecture word width mismatch) at java.lang.ClassLoader$NativeLibrary.load(Native Method) at java.lang.ClassLoader.loadLibrary0(Unknown Source) 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:83) at processing.app.Editor.populateSerialMenu(Editor.java:967) at processing.app.Editor.buildToolsMenu(Editor.java:695) at processing.app.Editor.buildMenuBar(Editor.java:476) at processing.app.Editor.<init>(Editor.java:205) at processing.app.Base.handleOpen(Base.java:714) at processing.app.Base.handleOpen(Base.java:679) at processing.app.Base.handleNew(Base.java:575) at processing.app.Base.<init>(Base.java:315) at processing.app.Base.main(Base.java:199) Quote Link to post Share on other sites
tingo 22 Posted March 12, 2013 Share Posted March 12, 2013 Are you by any chance running this on a machine with 64-bit Linux? I notice the error mentions "ELFCLASS32"... adinov 1 Quote Link to post Share on other sites
adinov 1 Posted March 13, 2013 Author Share Posted March 13, 2013 Yes core2 duo = 64 bit Is that the problem?!?!?!? Why? Quote Link to post Share on other sites
chibiace 46 Posted March 13, 2013 Share Posted March 13, 2013 the build is 32bit i think. if you have a copy of arduino that works you could try borrowing their librxtxSerial.so Quote Link to post Share on other sites
adinov 1 Posted March 13, 2013 Author Share Posted March 13, 2013 My java under /opt/java/64 has /opt/java/64/jre1.6.0_31 /opt/java/64/jre-6u31-linux-x64.bin I can't see a 32 bit version anywhere! Thanks for your help to sort this out!! Quote Link to post Share on other sites
olivluca 12 Posted March 13, 2013 Share Posted March 13, 2013 cd /home/ad/Desktop/energia-0101E0009/lib/ mv librxtxSerial.so librxtxSerial.so.orig mv librxtxSerial64.so librxtxSerial.so energia and adinov 2 Quote Link to post Share on other sites
adinov 1 Posted March 17, 2013 Author Share Posted March 17, 2013 SOLVED! So the problem was due to the default 32-bit librxtxSerial class (driver). Replacing it with the 64-bit version that was already supplied in /lib/, fixed the problem. thanks to all that helped!! roadrunner84 1 Quote Link to post Share on other sites
tingo 22 Posted March 17, 2013 Share Posted March 17, 2013 Great that you got it working. Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.