1.6. Called a kermeta API from to the project java

This part consists to use the operation "helloWorld" defined in the project kermeta "helloworldkmt"

to display the message transmitting by the API kermeta on the console

  1. Create a new java class containing the following listing programm

public static void main(String[] args) {
	// TODO Auto-generated method stub
	helloworldkmt.mainPackage.MainClass mc = helloworldkmt.mainPackage.KerRichFactory.createMainClass();
	System.out.println("Essai avec un code kermeta distant");
	System.out.println(mc.helloWorld());	
}
			
  1. Launch the java program

    Right click on the class containing main operation -> Run As -> Java Application

  2. Check the message "Hello world from a Kermeta project!!!" has been displayed on the console