# Serial.list() on Linux doesn't seem to work

**URL:** https://discourse.processing.org/t/serial-list-on-linux-doesnt-seem-to-work/37075
**Category:** Libraries
**Created:** [May 25, 2022, 5:33am UTC](https://discourse.processing.org/t/serial-list-on-linux-doesnt-seem-to-work/37075 "2022-05-25T05:33:02Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![dattasaurabh82](https://avatars.discourse-cdn.com/v4/letter/d/ba9def/32.png) [@dattasaurabh82](https://discourse.processing.org/u/dattasaurabh82)
#### Post date: [May 25, 2022, 5:33am UTC](https://discourse.processing.org/t/serial-list-on-linux-doesnt-seem-to-work/37075/1 "2022-05-25T05:33:02Z")

</div>

**OS:** Ubuntu 22.04 LTS x86\_64  
**Kernel:** 5.17.8-051708-generic  
**Processing IDE version:** 4.0b8  
**Issue:** `Serial.list()` doesn’t list all the serial ports, just one.

**Sketch to try for checking:** import processing.serial.\*;

```auto
import processing.serial.*;
void setup(){
  printArray(Serial.list());
}
void draw(){
}

```

Any pointers?

---

<div class="post-metadata">

### Author: ![The\_Traveler](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/the_traveler/32/16252_2.png) [@The\_Traveler](https://discourse.processing.org/u/The_Traveler)
#### Post date: [May 26, 2022, 1:02pm UTC](https://discourse.processing.org/t/serial-list-on-linux-doesnt-seem-to-work/37075/2 "2022-05-26T13:02:34Z")

</div>

Looks broken. I ran the serial examples included with 4.0b8 on my Lubuntu Linux box and they all failed with “ArrayIndexOutOfBoundsException” errors.

---

<div class="post-metadata">

### Author: ![adisimone401](https://avatars.discourse-cdn.com/v4/letter/a/e36b37/32.png) [@adisimone401](https://discourse.processing.org/u/adisimone401)
#### Post date: [June 30, 2022, 10:01pm UTC](https://discourse.processing.org/t/serial-list-on-linux-doesnt-seem-to-work/37075/3 "2022-06-30T22:01:52Z")

</div>

OS: Mac OS Monterey  
V. 12.4  
Processing Ide version 4.0b8  
Issue: ON “Serial.list()” - Error: UnsatisfiedLinkError: Could not load the jssc library: Couldn’t load library library jssc

import processing.serial.\*;  
Serial myPort;

void setup(){  
printArray(Serial.list());  
myPort = new Serial(this, Serial.list()[0], 9600);  
}

I have verified that the error is generated by the “Serial.list()” method.  
The problem occurs in Processing Ide version 4.0b8.

On Processing 4.0b7 there are no problems and everything works at its best!

Any suggestions?
