# \[Working\] Compiling Processing into a JAR file!

**URL:** <https://discourse.processing.org/t/working-compiling-processing-into-a-jar-file/42729>\
**Category:** Gallery\
**Created:** [September 9, 2023, 7:00pm UTC](https://discourse.processing.org/t/working-compiling-processing-into-a-jar-file/42729 "2023-09-09T19:00:38Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![nuhuhwy](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/nuhuhwy/32/18485_2.png) [@nuhuhwy](https://discourse.processing.org/u/nuhuhwy)\
**Post date:** [September 9, 2023, 7:00pm UTC](https://discourse.processing.org/t/working-compiling-processing-into-a-jar-file/42729/1 "2023-09-09T19:00:38Z")

</div>

# Heres an easy way to compile processing apps to jar files!

### Note: This doesnt work for FX2D and / or libraries, this works for processing server & client tho.

> **Step 1:**
> 
> > Export your processing sketch with **Linux 64x** selected

> **Step 2:**
> 
> > Go into the exported folder, go to lib. Copy all of its contents into a new folder.

> **Step 3:**
> 
> > Now select every **.jar** file, that is in the new folder. Right click → extract → extract here. It will ask you if you want to replace or skip, press replace. Then delete the old **.jar** files, you don’t need them anymore.

> **Step 4:**
> 
> > Select every file in the folder. Right click → compress → Compress to **.zip**. Rename the **.zip** to a **.jar**

Now your file will be able to be executed!

---

<div class="post-metadata">

**Author:** ![JoseMY](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/josemy/32/2016_2.png) [@JoseMY](https://discourse.processing.org/u/JoseMY)\
**Post date:** [October 19, 2023, 8:19pm UTC](https://discourse.processing.org/t/working-compiling-processing-into-a-jar-file/42729/2 "2023-10-19T20:19:42Z")

</div>

Weird. Some time ago (a year? two?) I contested in a jam. Half an hour before deadline, I exported my sketch, took the jar file and uploaded it. Then, when judges tried to view my sketch, it didn’t work.

Now I can guess why. You say the processing script is exported without dependencies?
