Start coding in Juno in under 5 minutes
Install Juno with a single command. Make sure you have Java 17+ installed first.
bash <(curl -fsSL https://raw.githubusercontent.com/LoPalma/juno-lang/main/install.sh)
Create a new directory for your project and navigate into it:
$ mkdir my-first-juno
$ cd my-first-juno
Create a file named hello.juno
using your favorite text editor:
$ nano hello.juno
# or use vim, code, sublime, etc.
Add the following code to your hello.juno
file:
import Io;
void main() {
Io.println("Hello, world!");
}
Save the file and exit your editor. In nano, press Ctrl+X
, then Y
, then Enter
.
You have two options to run your Juno program:
$ juno run hello.juno
Hello, world!
$ juno build hello.juno
$ juno exec hello
Hello, world!
You've just written and executed your first Juno program! The classic "Hello, world!" is the starting point for every programmer's journey.
What's happening here:
import Io;
brings in the input/output modulevoid main()
is the entry point of every Juno programIo.println()
outputs text to the consoleReady to learn more? Check out our documentation to explore Juno's features, syntax, and advanced concepts.
Explore Documentation