-
Notifications
You must be signed in to change notification settings - Fork 0
Troubleshooting
Symptom: When you run the sketch, a red error message is displayed at the bottom of the sketch window: "UnsatisfiedLinkError: Could not load the jssc library: Couldn't load library library jssc"
Explanation: If you are running Processing 4.0.1 on an Apple Silicon computer, this is an expected error. It is a bug in the Processing IDE. The bug affects any sketch that uses the serial port; it is not specific to the SerialRecord library.
Solution: See this page for step-by-step instructions on how to solve the problem.
Explanation: This is probably because the sketch couldn't detect which serial port is connected to the Arduino.
Next steps:
In order to verify this, you need to see the rest of the messages that are displayed in the console.
- Click the icon that looks like a horizontal line with an arrow pointing up, at the lower right of the console. (In this screenshot, the icon has an arrow pointing down, because the console has been opened. If the arrow already points down, you should not click it again.)
- Drag upwards anywhere on the red bar, in order to increase the amount of the window that is allocated to the console. (You may also wish to drag the entire window to a larger height, so that there is more total room for the combined height of the sketch source code and the console.)

Now, verify that the text displayed in the console is (approximately) as shown in the screenshot in the following section, and if it is, proceed with the instructions in that section.
Explanation: The examples use the SerialUtils.findArduinoPort() function to discover which serial port is connected to the Arduino. If an Arduino is connected to the computer, and this function is unable to discover it, the console at the bottom of the Processing sketch window will print a list of serial ports, ending with by the text:
See https://github.com/osteele/Processing_SerialRecord/wiki/Find-the-Arduino-Serial-Port for information on how to identify the appropriate serial port.
Solution: Follow the link in that message, https://github.com/osteele/Processing_SerialRecord/wiki/Find-the-Arduino-Serial-Port, for instructions as to how to modify the sketch.