# Where are the Java options set

**URL:** <https://discourse.processing.org/t/where-are-the-java-options-set/7076>\
**Category:** Processing\
**Created:** [January 1, 2019, 7:30pm UTC](https://discourse.processing.org/t/where-are-the-java-options-set/7076 "2019-01-01T19:30:37Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![clankill3r](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/clankill3r/32/1098_2.png) [@clankill3r](https://discourse.processing.org/u/clankill3r)\
**Post date:** [January 1, 2019, 7:30pm UTC](https://discourse.processing.org/t/where-are-the-java-options-set/7076/1 "2019-01-01T19:30:37Z")

</div>

Where are the java options set, for example the option to enable assertions?  
Normally assertion checking is off by default in java, but in Processing it is on by default.  
At the moment I’m using a library that has some heavy assertion checking slowing things down and I would like to turn it off.

Run this to see that `-ea` is indeed enabled in processing by default:

`assert false : "ouch";`

---

<div class="post-metadata">

**Author:** ![jeremydouglass](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/jeremydouglass/32/20_2.png) [@jeremydouglass](https://discourse.processing.org/u/jeremydouglass)\
**Post date:** [January 15, 2019, 1:00am UTC](https://discourse.processing.org/t/where-are-the-java-options-set/7076/2 "2019-01-15T01:00:45Z")

</div>

Were you able to resolve this?

If nobody on the forum knows, this might be a good question for [https://github.com/processing/processing/issues](https://github.com/processing/processing/issues), as it deals more with Processing / PDE internals that the core development team might now.

---

<div class="post-metadata">

**Author:** ![clankill3r](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/clankill3r/32/1098_2.png) [@clankill3r](https://discourse.processing.org/u/clankill3r)\
**Post date:** [January 15, 2019, 2:17pm UTC](https://discourse.processing.org/t/where-are-the-java-options-set/7076/3 "2019-01-15T14:17:44Z")

</div>

Nope,

I did post a issue now.

---

<div class="post-metadata">

**Author:** ![jeremydouglass](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/jeremydouglass/32/20_2.png) [@jeremydouglass](https://discourse.processing.org/u/jeremydouglass)\
**Post date:** [January 17, 2019, 7:16am UTC](https://discourse.processing.org/t/where-are-the-java-options-set/7076/4 "2019-01-17T07:16:33Z")

</div>

liked issue:

> <https://github.com/processing/processing/issues/5755>
>
> Where are the java options set, for example the option to enable assertions?
> No…rmally assertion checking is off by default in java, but in Processing it is on by default.
> At the moment I’m using a library that has some heavy assertion checking slowing things down and I would like to turn it off.
> 
> Run this to see that \`-ea\` is indeed enabled in processing by default:
> \`\`\`
> assert false : "ouch";
> \`\`\`

Response:

> Changing `run.options` in `preferences.txt` should do the trick.  
> Faux documentation can be seen in [defaults.txt](https://github.com/processing/processing/blob/master/build/shared/lib/defaults.txt).
