Question about RuntimeException: Error opening serial port /dev/tty1: Permission denied

hello,
i’m new here and dont know how to fix this problem… RuntimeException: Error opening serial port /dev/tty1: Permission denied

I’m using ubuntu 18.04

1 Like

I suggest you run with admin privileges. I am not sure if it would be enough to run the sketch with higher admin privileges or if you need to run the actual sketch using the sudo command. Unfortunately I do not have a setup to test this. If the first option does not work, you can try checking the docs for processing-java` which you can find here so you should do something along the lines:

sudo processing-java --sketch=/full/path/to/your/sketch/dir --output=/path/to/output/dir --force --run

You can also check ubuntu posts as they provide some proper ways to deal with this issue. For instnace, this.

Kf

1 Like