# 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:** 1\
**Showing post:** 2

<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! 🙂

---

_[View the full topic](https://discourse.julialang.org/t/lesson1-creating-jl-file-and-running-it-from-julia/73580)._
