# InitError: The MATLAB library path could not be found

**URL:** <https://discourse.julialang.org/t/initerror-the-matlab-library-path-could-not-be-found/38729>\
**Category:** New to Julia\
**Tags:** question\
**Created:** [May 4, 2020, 9:15am UTC](https://discourse.julialang.org/t/initerror-the-matlab-library-path-could-not-be-found/38729 "2020-05-04T09:15:10Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ashwin\_Sundarka](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ashwin_sundarka/32/14552_2.png) [@Ashwin\_Sundarka](https://discourse.julialang.org/u/Ashwin_Sundarka)\
**Post date:** [May 4, 2020, 9:15am UTC](https://discourse.julialang.org/t/initerror-the-matlab-library-path-could-not-be-found/38729/1 "2020-05-04T09:15:10Z")

</div>

julia\> using MATLAB  
ERROR: InitError: The MATLAB library path could not be found.  
Stacktrace:  
[1] error(::String) at .\error.jl:33  
[2] matlab\_libpath at C:\Users\K584961.julia\packages\MATLAB\cVrxc\src\mxbase.jl:47 [inlined]  
[3] **init** () at C:\Users\K584961.julia\packages\MATLAB\cVrxc\src\MATLAB.jl:72  
[4] \_include\_from\_serialized(::String, ::Array{Any,1}) at .\loading.jl:697  
[5] \_require\_search\_from\_serialized(::Base.PkgId, ::String) at .\loading.jl:781  
[6] \_require(::Base.PkgId) at .\loading.jl:1006  
[7] require(::Base.PkgId) at .\loading.jl:927  
[8] require(::Module, ::Symbol) at .\loading.jl:922  
during initialization of module MATLAB

I have my env variables:  
LD\_LIBRARY\_PATH: C:\Users\K584961\Stuff\Desktop\New folder\bin\win64  
MATLAB\_HOME: C:\Users\K584961\Stuff\Desktop\New folder\bin\win64
