# Scilab works on my system - linux mint 21.2, but it gives a GLException, can I fix this?

**URL:** <https://scilab.discourse.group/t/scilab-works-on-my-system-linux-mint-21-2-but-it-gives-a-glexception-can-i-fix-this/301>\
**Category:** Scilab beginners\
**Created:** [December 19, 2023, 3:14pm UTC](https://scilab.discourse.group/t/scilab-works-on-my-system-linux-mint-21-2-but-it-gives-a-glexception-can-i-fix-this/301 "2023-12-19T15:14:58Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![mottelet](https://yyz2.discourse-cdn.com/free1/user_avatar/scilab.discourse.group/mottelet/32/13_2.png) [@mottelet](https://scilab.discourse.group/u/mottelet)\
**Post date:** [December 19, 2023, 4:07pm UTC](https://scilab.discourse.group/t/scilab-works-on-my-system-linux-mint-21-2-but-it-gives-a-glexception-can-i-fix-this/301/2 "2023-12-19T16:07:15Z")

</div>

> [@decuser](#):
>
> ```auto
> Caught handled GLException: EGLGLXDrawableFactory - Could not initialize shared resources for EGLGraphicsDevice[type .egl, v0.0.0, nativeDisplayID 0x0, connection :0, unitID 0, handle 0x0, owner true, ResourceToolkitLock[obj 0x3997013e, isOwner true, <3de96438, af401f8>[count 1, qsz 0, owner <main-SharedResourceRunner>]]] on thread main-SharedResourceRunner
> 
> ```

Hello,

try this:

```auto
export _JAVA_OPTIONS='-Djogl.disable.opengles'

```

or, if the above does not work:

```auto
export LIBGL_ALWAYS_SOFTWARE=true scilab

```

S.

---

_[View the full topic](https://scilab.discourse.group/t/scilab-works-on-my-system-linux-mint-21-2-but-it-gives-a-glexception-can-i-fix-this/301)._
