# Upload processing file and be able to run it online

**URL:** https://discourse.processing.org/t/upload-processing-file-and-be-able-to-run-it-online/31816
**Category:** Project Guidance
**Created:** [August 20, 2021, 8:13pm UTC](https://discourse.processing.org/t/upload-processing-file-and-be-able-to-run-it-online/31816 "2021-08-20T20:13:45Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![kylu](https://avatars.discourse-cdn.com/v4/letter/k/8491ac/32.png) [@kylu](https://discourse.processing.org/u/kylu)
#### Post date: [August 20, 2021, 8:13pm UTC](https://discourse.processing.org/t/upload-processing-file-and-be-able-to-run-it-online/31816/1 "2021-08-20T20:13:45Z")

</div>

hi,  
I need to know a way to upload my files to a server so that they can be executed online, without having to download

---

<div class="post-metadata">

### Author: ![josephh](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/josephh/32/210_2.png) [@josephh](https://discourse.processing.org/u/josephh)
#### Post date: [August 21, 2021, 1:08pm UTC](https://discourse.processing.org/t/upload-processing-file-and-be-able-to-run-it-online/31816/2 "2021-08-21T13:08:26Z")

</div>

Hi @kylu,

You tagged your topic with Processing so you must know that Processing is running on the Java programming language and the JVM (Java virtual machine) and therefore can’t be run on a web page.

You have several alternatives:

- The most obvious one is to use [p5.js](https://p5js.org/) which is a port of Processing to JavaScript
- Host your sketch on OpenProcessing which can either use p5js or ProcessingJS (which translates Java code to JS but is [deprecated](https://intercom.help/openprocessing/en/articles/3250763-processingjs-deprecation-notice))
- Use the p5 web editor to interactively edit your sketches and share them with the world! 😉

---

<div class="post-metadata">

### Author: ![glv](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/glv/32/18785_2.png) [@glv](https://discourse.processing.org/u/glv)
#### Post date: [August 22, 2021, 12:50pm UTC](https://discourse.processing.org/t/upload-processing-file-and-be-able-to-run-it-online/31816/3 "2021-08-22T12:50:13Z")

</div>

Hello,

This topic may be of interest:

> [@Processing web sketch embeds on this forum](https://discourse.processing.org/t/processing-web-sketch-embeds-on-this-forum/19097):
>
> Discourse has the ability to whitelist embedded iframes from select hosts. We could use this to enable embedding web-hosted Processing / p5.js sketches from community-trusted platforms such as the p5.js web editor, or [openprocessing.org](http://openprocessing.org), et cetera. An embed from [editor.p5js.org](http://editor.p5js.org): \<iframe src="https://editor.p5js.org/jeremydouglass/sketches/C8iRfwjx-" width="100%" height="510" allowfullscreen frameborder="0" marginwidth="0" marginheight="0"\>\</iframe\> An embed from [openprocessing.org](http://openprocessing.org) \<iframe…

`:)`

---

<div class="post-metadata">

### Author: ![kylu](https://avatars.discourse-cdn.com/v4/letter/k/8491ac/32.png) [@kylu](https://discourse.processing.org/u/kylu)
#### Post date: [August 22, 2021, 7:15pm UTC](https://discourse.processing.org/t/upload-processing-file-and-be-able-to-run-it-online/31816/4 "2021-08-22T19:15:47Z")

</div>

thanks for all the alternatives! i will try to learn about p5.js

---

<div class="post-metadata">

### Author: ![Chrisir](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/chrisir/32/45_2.png) [@Chrisir](https://discourse.processing.org/u/Chrisir)
#### Post date: [August 29, 2021, 11:13am UTC](https://discourse.processing.org/t/upload-processing-file-and-be-able-to-run-it-online/31816/5 "2021-08-29T11:13:34Z")

</div>

Still sad, the standard java processing can’t run online

Can’t we translate it automatically ?

---

<div class="post-metadata">

### Author: ![josephh](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/josephh/32/210_2.png) [@josephh](https://discourse.processing.org/u/josephh)
#### Post date: [August 29, 2021, 8:53pm UTC](https://discourse.processing.org/t/upload-processing-file-and-be-able-to-run-it-online/31816/6 "2021-08-29T20:53:11Z")

</div>

> [@Chrisir](#):
>
> Can’t we translate it automatically ?

I think that ProcessingJS was doing that automatically but I just found a transpiler from Java to JavaScript:

> **[JSweet: a transpiler to write JavaScript programs in Java](https://www.jsweet.org/)**
>
> JSweet is an open transpiler from Java to TypeScript/JavaScript with more than 1000 well-typed JavaScript libraries.

I don’t know how well it can perform though 😉
