# Lesson1 - creating .jl file and running it from Julia

**URL:** <https://discourse.julialang.org/t/lesson1-creating-jl-file-and-running-it-from-julia/73580>\
**Category:** New to Julia\
**Created:** [December 24, 2021, 9:21am UTC](https://discourse.julialang.org/t/lesson1-creating-jl-file-and-running-it-from-julia/73580 "2021-12-24T09:21:23Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Derrick\_Kassen](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/derrick_kassen/32/32194_2.png) [@Derrick\_Kassen](https://discourse.julialang.org/u/Derrick_Kassen)\
**Post date:** [December 24, 2021, 9:21am UTC](https://discourse.julialang.org/t/lesson1-creating-jl-file-and-running-it-from-julia/73580/1 "2021-12-24T09:21:23Z")

</div>

Hi there,

I’ve installed Julia - using a Mac.  
I’ve created my first julia file and saved it in my Folder on my Desktop as a .jl file using Brackets (as text editor). When I launch Julia and type: include(“Example1.jl”) enter

I get an error!  
SystemError: opening file “/Users/kassen/Example1.jl”: No such file or directory  
Please help!  
Thanks

---

<div class="post-metadata">

**Author:** ![carstenbauer](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/carstenbauer/32/4981_2.png) [@carstenbauer](https://discourse.julialang.org/u/carstenbauer)\
**Post date:** [December 24, 2021, 9:30am UTC](https://discourse.julialang.org/t/lesson1-creating-jl-file-and-running-it-from-julia/73580/2 "2021-12-24T09:30:28Z")

</div>

Your file seems to lie in `/Users/kassen/Desktop/<somefolder>/Example.jl` whereas Julia by default starts in your home directory, i.e. `/Users/kassen`. You have a few options to get things working:

1. Use absolute path: `include("/Users/kassen/Desktop/<somefolder>/Example.jl")`
2. `cd` into the directory of the file: `cd("/Users/kassen/Desktop/<somefolder>")` followed by `include("Example1.jl")`.
3. Start Julia in the directory `/Users/kassen/Desktop/<somefolder>/` in the first place: use e.g. Terminal or iTerm2 to navigate to the folder and then start julia with the `julia` command.

Merry Christmas! 🙂

---

<div class="post-metadata">

**Author:** ![juliohm](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/juliohm/32/215266_2.png) [@juliohm](https://discourse.julialang.org/u/juliohm)\
**Post date:** [December 24, 2021, 9:31am UTC](https://discourse.julialang.org/t/lesson1-creating-jl-file-and-running-it-from-julia/73580/3 "2021-12-24T09:31:27Z")

</div>

Welcome @Derrick_Kassen !

Try to run the script with:

```bash
julia /path/to/script.jl

```

If you are learning Julia for the first time, consider trying things out in Pluto, it is a good platform for beginners because it handles package installation, shows the results right away, etc.

Merry Xmas! 🎄 :julia:

---

<div class="post-metadata">

**Author:** ![Derrick\_Kassen](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/derrick_kassen/32/32194_2.png) [@Derrick\_Kassen](https://discourse.julialang.org/u/Derrick_Kassen)\
**Post date:** [December 24, 2021, 10:18am UTC](https://discourse.julialang.org/t/lesson1-creating-jl-file-and-running-it-from-julia/73580/4 "2021-12-24T10:18:37Z")

</div>

> [@carstenbauer](#):
>
> cd(“/Users/kassen/Desktop/”)

Thank you & Merry Christmas to you 2!
