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
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()); }
Launch the java program
Right click on the class containing main operation -> Run As -> Java Application
Check the message "Hello world from a Kermeta project!!!" has been displayed on the console