# Using ROS.jl, and running rosrun to run a .jl file, the JLD load function says file not found

**URL:** <https://discourse.julialang.org/t/using-ros-jl-and-running-rosrun-to-run-a-jl-file-the-jld-load-function-says-file-not-found/90440>\
**Category:** General Usage\
**Created:** [November 18, 2022, 11:52am UTC](https://discourse.julialang.org/t/using-ros-jl-and-running-rosrun-to-run-a-jl-file-the-jld-load-function-says-file-not-found/90440 "2022-11-18T11:52:50Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nishant\_Mohanty](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/nishant_mohanty/32/38748_2.png) [@Nishant\_Mohanty](https://discourse.julialang.org/u/Nishant_Mohanty)\
**Post date:** [November 18, 2022, 11:52am UTC](https://discourse.julialang.org/t/using-ros-jl-and-running-rosrun-to-run-a-jl-file-the-jld-load-function-says-file-not-found/90440/1 "2022-11-18T11:52:50Z")

</div>

Hello all,

I am try to generate a precomputed matrix. And then use it within a online controller on the robots. I am using ROS.jl for the same. However when I am importing the saved matrix as:

```julia
vars = load("data2.jld")
track_center1 = vars["track"];

```

It says no file found as:

```julia
LoadError: ArgumentError: No file exists at given path: data2.jld

```

The file is at the correct location because when I run the code using include in julia terminal it works. I am able to print the data contained in the matrix.

The same happened while using mat file as well, using MAT.jl. It ran in julia repl but not when doing rosrun.

Any suggestion how to proceed?

---

<div class="post-metadata">

**Author:** ![Nishant\_Mohanty](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/nishant_mohanty/32/38748_2.png) [@Nishant\_Mohanty](https://discourse.julialang.org/u/Nishant_Mohanty)\
**Post date:** [November 19, 2022, 1:00am UTC](https://discourse.julialang.org/t/using-ros-jl-and-running-rosrun-to-run-a-jl-file-the-jld-load-function-says-file-not-found/90440/2 "2022-11-19T01:00:11Z")

</div>

I was able to solve it by providing the full location of the file. However I am not sure why it does not work if the file is in the folder and I mention just the file name. Seems like for ros the current directory is something else?
