# How to run processing-java command on ubuntu

**URL:** <https://discourse.processing.org/t/how-to-run-processing-java-command-on-ubuntu/38609>\
**Category:** Processing\
**Created:** [September 2, 2022, 1:41am UTC](https://discourse.processing.org/t/how-to-run-processing-java-command-on-ubuntu/38609 "2022-09-02T01:41:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![superumam](https://avatars.discourse-cdn.com/v4/letter/s/ecccb3/32.png) [@superumam](https://discourse.processing.org/u/superumam)\
**Post date:** [September 2, 2022, 1:41am UTC](https://discourse.processing.org/t/how-to-run-processing-java-command-on-ubuntu/38609/1 "2022-09-02T01:41:43Z")

</div>

I downloaded and installed processing4 on ubuntu successfully, but failed to run processing-java command.  
I developed and run a python script and finally got this issue.

 ![image](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/3X/b/3/b35b19b1723364b057a44d3d0b9924ed9375e01f.jpeg)  
Thanks.

---

<div class="post-metadata">

**Author:** ![tabreturn](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/tabreturn/32/3697_2.png) [@tabreturn](https://discourse.processing.org/u/tabreturn)\
**Post date:** [September 2, 2022, 10:06am UTC](https://discourse.processing.org/t/how-to-run-processing-java-command-on-ubuntu/38609/2 "2022-09-02T10:06:08Z")

</div>

Welcome @superumam

Is there an error message? I tested this on my system (Ubuntu-based) using Processing 4, and things seem to work fine –

1. I created a sketch file – in this case, named _demo.pde_ – in a folder named _demo_ (on my Desktop)
2. I opened my terminal to `cd` to my extracted Processing application directory, i.e.:  
`cd /home/tabreturn/apps/Processing`
3. Then, I ran `./processing-java --sketch=/home/tabreturn/Desktop/demo --run`

My sketch was just a one-liner – a square() function – and the display window popped up and rendered what I expected.
