# Juno: using a sysimage causes error

**URL:** <https://discourse.julialang.org/t/juno-using-a-sysimage-causes-error/27764>\
**Category:** Juno\
**Created:** [August 20, 2019, 2:14pm UTC](https://discourse.julialang.org/t/juno-using-a-sysimage-causes-error/27764 "2019-08-20T14:14:21Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![asprionj](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/asprionj/32/6856_2.png) [@asprionj](https://discourse.julialang.org/u/asprionj)\
**Post date:** [August 20, 2019, 2:14pm UTC](https://discourse.julialang.org/t/juno-using-a-sysimage-causes-error/27764/1 "2019-08-20T14:14:21Z")

</div>

I’m trying to use a custom system image for starting Julia in Juno. The system image was compiled by `compile_incremental` or `compile_package` from `PackageCompiler`, the result is the same. Now, when I try to start Julia in Juno (using the new sysimage), the following error occurs:

```julia
ERROR: could not load library "C:\Users\Jonas Asprion\AppData\Local\atom\app-1.40.0"

```

I then have to close Atom because Julia hangs and cannot be stopped. Using the system image to start a normal Julia session (not in Juno) works fine.

Any ideas…?

---

<div class="post-metadata">

**Author:** ![pfitzseb](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pfitzseb/32/45566_2.png) [@pfitzseb](https://discourse.julialang.org/u/pfitzseb)\
**Post date:** [August 20, 2019, 2:19pm UTC](https://discourse.julialang.org/t/juno-using-a-sysimage-causes-error/27764/2 "2019-08-20T14:19:28Z")

</div>

How are you loading the sysimg? Putting

```julia
-J/home/pfitzseb/.julia/dev/PackageCompiler/sysimg/sys.so

```

into the “Additional Julia Startup Arguments” option works fine for me:

 ![image](https://global.discourse-cdn.com/julialang/original/3X/4/5/45d872e6be2149cdbebd220345c97295e51d00cb.png)

---

<div class="post-metadata">

**Author:** ![asprionj](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/asprionj/32/6856_2.png) [@asprionj](https://discourse.julialang.org/u/asprionj)\
**Post date:** [August 20, 2019, 4:45pm UTC](https://discourse.julialang.org/t/juno-using-a-sysimage-causes-error/27764/3 "2019-08-20T16:45:10Z")

</div>

I do it exactly the same way, but this’ what happens:

 ![Juno_sysimage_error](https://global.discourse-cdn.com/julialang/original/3X/b/9/b9b1127415d8ab5b588786a86f434095833eee93.png)

(`plots_incremental.dll` is just a copy of what `PackageCompiler` produced in `.../sysimg/sys.dll`)  
You’re also on Windows? (Specifically I’m on Windows 8.1…)

---

<div class="post-metadata">

**Author:** ![sefffal](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/sefffal/32/23640_2.png) [@sefffal](https://discourse.julialang.org/u/sefffal)\
**Post date:** [February 11, 2020, 3:40pm UTC](https://discourse.julialang.org/t/juno-using-a-sysimage-causes-error/27764/4 "2020-02-11T15:40:29Z")

</div>

Old post, but for other Windows 10 users finding their way here from Google, I was able to solve this by quoting the path and escaping backslashes. For example, -J"C:\Users\User Name\sys\_plots.so"  
I hope that helps!

---

<div class="post-metadata">

**Author:** ![e3c6](https://avatars.discourse-cdn.com/v4/letter/e/e79b87/32.png) [@e3c6](https://discourse.julialang.org/u/e3c6)\
**Post date:** [May 20, 2020, 10:41pm UTC](https://discourse.julialang.org/t/juno-using-a-sysimage-causes-error/27764/5 "2020-05-20T22:41:50Z")

</div>

Is there a way to do something like this, but for each project? That is, a sysimage for each project.
