Home » Desktop


Desktop Applications

Java Desktop Applications Let me explain a few things that will prepare you to run a Java Desktop Application, and other Java Applications as well. If you do not get this right the application won’t run. Bytecode example that looks very similar to assembly language. [code language=”java”] iconst_2 istore_1 iload_1 sipush 1000 if_icmpge 44 iconst_2 istore_2 iload_2 iload_1 if_icmpge 31 iload_1 iload_2 irem ifne 25 goto 38 iinc 2, 1 goto 11 getstatic #84; // Field java/lang/System.out:Ljava/io/PrintStream; iload_1 invokevirtual #85; // Method java/io/PrintStream.println:(I)V iinc 1, 1 goto 2 return [/code] Java runs in a virtual machine, meaning this VM (java.exe or javaw.exe) interprets Java bytecode. For the VM to be able to interpret the bytecode it needs to be started u...