Getting Started


In this guide we will create a simple “Hello World” application using Eventloop, which is the core component of Datakernel Framework.

What you will need:

  • JDK 1.8 or higher
  • Maven 3.0 or higher
  • DataKernel (installation)

To proceed with this guide you have 2 options:

1. Working Example

To run the complete example, enter next commands:

$ git clone
$ cd datakernel-examples/getting-started
$ mvn clean package exec:java -Dexec.mainClass=io.datakernel.examples.HelloWorld

2. Step-by-step guide

Firstly, create a folder for application and build an appropriate project structure:

└── pom.xml
└── src
    └── main
        └── java
            └── io
                └── datakernel
                    └── examples

You can create this project structure manually or simply use the commands below:

$ mkdir -p helloworld/src/main/java/io/datakernel/examples
$ touch helloworld/pom.xml
$ touch helloworld/src/main/java/io/datakernel/examples/

Add a maven dependency to use DataKernel in your project, as showed below:

<?xml version="1.0" encoding="UTF-8"?>
<project xmlns=""






Then, write down the following code to

package io.datakernel.examples;

import io.datakernel.eventloop.Eventloop;

public class HelloWorld {

	public static void main(String[] args) {
		Eventloop eventloop = Eventloop.create(); -> System.out.println("Hello World"));;

Finally, enter the command below to compile and run this app:

$ mvn clean package exec:java -Dexec.mainClass=io.datakernel.examples.HelloWorld