Get Started

Start coding in Juno in under 5 minutes

Install Juno

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)

Hello World Tutorial

Step 1: Create a Directory

Create a new directory for your project and navigate into it:

$ mkdir my-first-juno
$ cd my-first-juno

Step 2: Create Your First File

Create a file named hello.juno using your favorite text editor:

$ nano hello.juno
# or use vim, code, sublime, etc.

Step 3: Write the Code

Add the following code to your hello.juno file:

import Io;

void main() {
  Io.println("Hello, world!");
}

Step 4: Save and Exit

Save the file and exit your editor. In nano, press Ctrl+X, then Y, then Enter.

Step 5: Run Your Program

You have two options to run your Juno program:

Option A: Run directly

$ juno run hello.juno
Hello, world!

Option B: Build then execute

$ juno build hello.juno
$ juno exec hello
Hello, world!

🎉 Congratulations!

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 module
  • void main() is the entry point of every Juno program
  • Io.println() outputs text to the console

What's Next?

Ready to learn more? Check out our documentation to explore Juno's features, syntax, and advanced concepts.

Explore Documentation