/tutorial/cecil/JVM/Example1.java
Java | 32 lines | 11 code | 5 blank | 16 comment | 0 complexity | 84b03493167eb940aa0b43f6e4e0958f MD5 | raw file
1import hello_world._any; 2import hello_world.hello_world; 3 4public class Example1 { 5 /* To run this example, procede like this : 6 7 compile_to_jvm hello_world 8 /bin/rm -f hello_world.class 9 javac Example1.java 10 java Example1 11 12 */ 13 public static void main(String[] args) { 14 hello_world root; 15 16 /* To initialize the Eiffel runtime : 17 */ 18 _any._initialize_eiffel_runtime(args); 19 20 /* Creation of the root object : 21 */ 22 root = new hello_world(); 23 24 /* Launching the root procedure : 25 */ 26 root.make(); 27 28 /* Launching again the root procedure : 29 */ 30 root.make(); 31 } 32}