Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.


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

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 complile exec:java@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 shown below:

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


	<name>Datakernel Examples: Getting started</name>



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) {
        //creating an eventloop and setting a task for it

		Eventloop eventloop = Eventloop.create(); -> System.out.println("Hello World"));
        //starting the created eventlloop;

Finally, enter the commands below in console to compile and run this app:

$ cd helloworld
$ mvn clean compile exec:java@HelloWorld

You'll receive a Hello World message proceeded by eventloop.