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:
- Use absolute path:
include("/Users/kassen/Desktop/<somefolder>/Example.jl")
-
cd
into the directory of the file:cd("/Users/kassen/Desktop/<somefolder>")
followed byinclude("Example1.jl")
. - 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 thejulia
command.
Merry Christmas!