# BARON ERROR: can't open nl file

**URL:** <https://discourse.julialang.org/t/baron-error-cant-open-nl-file/48456>\
**Category:** Optimization (Mathematical)\
**Tags:** jump\
**Created:** [October 15, 2020, 7:35pm UTC](https://discourse.julialang.org/t/baron-error-cant-open-nl-file/48456 "2020-10-15T19:35:49Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![tpmp](https://avatars.discourse-cdn.com/v4/letter/t/a88e4f/32.png) [@tpmp](https://discourse.julialang.org/u/tpmp)\
**Post date:** [October 15, 2020, 7:35pm UTC](https://discourse.julialang.org/t/baron-error-cant-open-nl-file/48456/1 "2020-10-15T19:35:49Z")

</div>

I was trying to use BARON to solve some problems.

JuMP.jl version: 0.21.5  
BARON.jl version: 0.6.5

When I run my program, the following error occurs:

```julia
C:\Program Files\ampl_mswin64\baron.exe: can't open C:\Users\Lujia\AppData\Local\Temp\jl_1V2Lgu\baron_problem.bar.nl
ERROR: LoadError: failed process: Process(`'C:\Program Files\ampl_mswin64\baron.exe' 'C:\Users\Lujia\AppData\Local\Temp\jl_1V2Lgu\baron_problem.bar'`, ProcessExited(1)) [1]

```

It seems the baron executable cannot find a .nl file. How can I solve that issue?

I do see `C:\Users\Lujia\AppData\Local\Temp\jl_1V2Lgu\baron_problem.bar` exists when using debug mode.

---

<div class="post-metadata">

**Author:** ![odow](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/odow/32/28685_2.png) [@odow](https://discourse.julialang.org/u/odow)\
**Post date:** [October 18, 2020, 8:40pm UTC](https://discourse.julialang.org/t/baron-error-cant-open-nl-file/48456/2 "2020-10-18T20:40:49Z")

</div>

It looks like these are different files. One ends in `.nl`, and the other ends in `.bar`.

I suggest you open an issue: [https://github.com/joehuchette/BARON.jl](https://github.com/joehuchette/BARON.jl).
