# Cannot run processing-java from bashfile; but works directly from terminal

**URL:** <https://discourse.processing.org/t/cannot-run-processing-java-from-bashfile-but-works-directly-from-terminal/40898>\
**Category:** Processing for Pi\
**Created:** [February 11, 2023, 11:32am UTC](https://discourse.processing.org/t/cannot-run-processing-java-from-bashfile-but-works-directly-from-terminal/40898 "2023-02-11T11:32:45Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![fabianluscher](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/fabianluscher/32/17959_2.png) [@fabianluscher](https://discourse.processing.org/u/fabianluscher)\
**Post date:** [March 21, 2023, 9:56am UTC](https://discourse.processing.org/t/cannot-run-processing-java-from-bashfile-but-works-directly-from-terminal/40898/3 "2023-03-21T09:56:20Z")

</div>

hi richardDL, thanks for the welcome.  
Yes, my problem might be solved if i would export the application correctly as you have, and not start the processing gui with the sketch as argument. But i’ve had multiple problems with exporting my sketch as application from and to raspberry pi, so i’ve hoped to circumvent this by just starting the processing gui with the sketch parameter. I’m not aware of any downsides to this, apart from maybe small performance issues?

I “solved” this with the solution to my other question - owner/group owner of the tmp folder gets changed each time:

> [@On Startup: "That's new to me - A strange and unexplainable error occurred"](https://discourse.processing.org/t/on-startup-thats-new-to-me-a-strange-and-unexplainable-error-occurred/40899/3):
>
> Solved: Somehow, the owner / group ownership got (?) changed for the folder /tmp/processing where tmp files are created for running a sketch. The owner/group was “root / root” and i’m not sure what the initial value was. If I change those to my current user with $ sudo chgrp GROUPNAME /tmp/proccessing $ sudo chown OWNERNAME /tmp/proccessing It works again. Not sure how long though. and what I did that those ownerships got changed or what else might be amiss. EDIT: calling “sudo …/process…

But i guess next test would be to export the application and see if the problem persists.

thanks!

---

_[View the full topic](https://discourse.processing.org/t/cannot-run-processing-java-from-bashfile-but-works-directly-from-terminal/40898)._
