Chapter 1. Calling Kermeta code from a standalone Java program

This tutorial aims to show how to call kermeta code from a standalone Java program.

1.1. Presentation

We are presenting this tutorial in 6 steps :

  1. Generate a new Kermeta project "HelloWorldKmt"

  2. Add a new operation which returns a string "hello world from a Kermeta project!!!"

  3. Generate a Jar file of the Kermeta project (using a simplified pom.xml)

  4. Create a new Java project

  5. Call the Kermeta API from to the java project

  6. Execute as a java application