# How to use juliac.jl?

**URL:** <https://discourse.julialang.org/t/how-to-use-juliac-jl/123024>\
**Category:** General Usage\
**Tags:** question\
**Created:** [November 24, 2024, 7:31pm UTC](https://discourse.julialang.org/t/how-to-use-juliac-jl/123024 "2024-11-24T19:31:03Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![uwestoehr](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/uwestoehr/32/216201_2.png) [@uwestoehr](https://discourse.julialang.org/u/uwestoehr)\
**Post date:** [April 12, 2025, 12:59am UTC](https://discourse.julialang.org/t/how-to-use-juliac-jl/123024/9 "2025-04-12T00:59:56Z")

</div>

> [@markusgumbel](#):
>
> [juliac](https://jbytecode.github.io/juliac/)  
> It gives a step-by-step tutorial and worked with Julia 1.12 beta.

I tried it and it does not work. I installed Julia 1.12 beta1 and when i try then

```julia
julia juliac.jl

```

it cannot find the file juliac.jl. So one has to specify the complete paths. In my case it would be

```julia
J:\\Julia-1.12\\bin\julia.exe J:\\Julia-1.12\\share\\julia\\juliac.jl --output-exe hello --trim D:\\usti\\Julia\\JuliaC\\helloworld.jl

```

and the content of helloworld.jl is just:

```julia
module HelloWorld

Base.@ccallable function main()::Cint
    println(Core.stdout, "Hello, World!")
    return 0
end
end # End of module HelloWorld 

```

The error I get is

```julia
LoadError: IOError: could not spawn `cc -std=gnu11 '-IJ:\Julia-1.12\include\julia' -g -c -o 'C:\Users\Uwe\AppData\Local\Temp\jl_UOF4T3\init.a' 'C:\Users\Uwe\AppData\Local\Temp\jl_UOF4T3\init.c'`: no such file or directory (ENOENT)

```

But I have no info why init.a was not created.

I also wonder how I specify the path to the C compiler. I have Microsoft Visual Studio as C/C++ compiler. But how to I tell Julia its path?

---

_[View the full topic](https://discourse.julialang.org/t/how-to-use-juliac-jl/123024)._
