Let's Start
These docs were written for all learners, from advanced developers to people getting started programming for the first time in their career.
Prerequisites#
Cafe requires Java SE Development Kit (JDK).
If you already have a JDK on your system, make sure it is version 8 or newer.
you can check version by running
java -versionon command prompt.
Set-up Cafe#
You can start by downloading the latest distribution:
Installation#
Installation using .zip file.#
- Unzip the package in any empty directory (preferred).
- Add
path_to_cafe/cafe/bindirectory to the environment path variable. - All set! Now, it's time to write your first Cafe program.
Installation using .exe file.#
- Download .exe file.
- Follow the steps & you're done
Hello, World example#
Step 1: Save the source in file name Hello.cafe & Compile using command.#
above command will generate
Hello.classfile.