Go Down

Topic: java.lang.UnsatisfiedLinkError (Read 104 times) previous topic - next topic

karlsinn

Hi,

I'm new to arduino. Until here I managed to install the IDE (OpenSuSE 42.3), run the blink test program. All fine.
Now I follow these instructions to test a sensor:
https://cdn-learn.adafruit.com/downloads/pdf/adxl345-digital-accelerometer.pdf

I managed to overcome a few problems and now the sensortest programm is compiling and uploading.

Now in the pdf they show some output that I should get but I don't. It looks like the window where the output should appear is the "Serial Monitor" but as soon as I open that one from the tools menu I get the following error message (at the end of this message).

I found with google a few tips about deleting some directory (that I can't find on my computer) and also found in the troubleshooting section the information that this is linked to an old version of the communications library and that I should search for comm.jar or jcl.jar.

I can't find any of those files and the rxtx-java version installed seems uptodate (2.2pre2-4.2).

What else can I try?
thx,
Karl




Picked up JAVA_TOOL_OPTIONS:
Der Sketch verwendet 8266 Bytes (25%) des Programmspeicherplatzes. Das Maximum sind 32256 Bytes.
Globale Variablen verwenden 820 Bytes (40%) des dynamischen Speichers, 1228 Bytes für lokale Variablen verbleiben. Das Maximum sind 2048 Bytes.
Exception in thread "AWT-EventQueue-0" java.lang.UnsatisfiedLinkError: jssc.SerialNativeInterface.openPort(Ljava/lang/String;Z)J
   at jssc.SerialNativeInterface.openPort(Native Method)
   at jssc.SerialPort.openPort(SerialPort.java:158)
   at processing.app.Serial.<init>(Serial.java:136)
   at processing.app.Serial.<init>(Serial.java:82)
   at processing.app.SerialMonitor$4.<init>(SerialMonitor.java:101)
   at processing.app.SerialMonitor.open(SerialMonitor.java:101)
   at processing.app.Editor.handleSerial(Editor.java:2392)
   at processing.app.Editor.lambda$buildToolsMenu$0(Editor.java:736)
   at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2022)
   at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2348)
   at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402)
   at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)
   at javax.swing.AbstractButton.doClick(AbstractButton.java:376)
   at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:842)
   at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:886)
   at java.awt.Component.processMouseEvent(Component.java:6533)
   at javax.swing.JComponent.processMouseEvent(JComponent.java:3315)
   at java.awt.Component.processEvent(Component.java:6298)
   at java.awt.Container.processEvent(Container.java:2237)
   at java.awt.Component.dispatchEventImpl(Component.java:4889)
   at java.awt.Container.dispatchEventImpl(Container.java:2295)
   at java.awt.Component.dispatchEvent(Component.java:4711)
   at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4889)
   at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4526)
   at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4467)
   at java.awt.Container.dispatchEventImpl(Container.java:2281)
   at java.awt.Window.dispatchEventImpl(Window.java:2746)
   at java.awt.Component.dispatchEvent(Component.java:4711)
   at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758)
   at java.awt.EventQueue.access$500(EventQueue.java:97)
   at java.awt.EventQueue$3.run(EventQueue.java:709)
   at java.awt.EventQueue$3.run(EventQueue.java:703)
   at java.security.AccessController.doPrivileged(Native Method)
   at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
   at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:90)
   at java.awt.EventQueue$4.run(EventQueue.java:731)
   at java.awt.EventQueue$4.run(EventQueue.java:729)
   at java.security.AccessController.doPrivileged(Native Method)
   at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
   at java.awt.EventQueue.dispatchEvent(EventQueue.java:728)
   at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
   at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
   at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
   at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
   at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
   at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)

karlsinn

hmm.. no answer.

can anybody tell me which version of all arduino and the other needed packages you're using in order to make it work?

Go Up