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

**URL:** <https://discourse.processing.org/t/question-about-runtimeexception-error-opening-serial-port-dev-tty1-permission-denied/10027>\
**Category:** Electronics (Arduino, etc.)\
**Created:** [April 6, 2019, 10:29am UTC](https://discourse.processing.org/t/question-about-runtimeexception-error-opening-serial-port-dev-tty1-permission-denied/10027 "2019-04-06T10:29:31Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![nanonatron](https://avatars.discourse-cdn.com/v4/letter/n/e19b73/32.png) [@nanonatron](https://discourse.processing.org/u/nanonatron)\
**Post date:** [April 6, 2019, 10:29am UTC](https://discourse.processing.org/t/question-about-runtimeexception-error-opening-serial-port-dev-tty1-permission-denied/10027/1 "2019-04-06T10:29:31Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![kfrajer](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/kfrajer/32/196_2.png) [@kfrajer](https://discourse.processing.org/u/kfrajer)\
**Post date:** [April 8, 2019, 1:40am UTC](https://discourse.processing.org/t/question-about-runtimeexception-error-opening-serial-port-dev-tty1-permission-denied/10027/2 "2019-04-08T01:40:07Z")

</div>

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](https://github.com/processing/processing/wiki/Processing-CLI:-Command-Line-Interface) 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](https://askubuntu.com/questions/210177/serial-port-terminal-cannot-open-dev-ttys0-permission-denied).

Kf
