100 likes | 340 Views
Application Programs. Java Application. API. Java APIs. Kernel. JVM. HW. Java. Java Java Virtual Machine (JVM) Java Application Program Interface (API). Java APIs. Client-Side applications Server-Side applications Client/Server applications Internet (Web) applications.
E N D
Application Programs Java Application API Java APIs Kernel JVM HW Java • Java • Java Virtual Machine (JVM) • Java Application Program Interface (API) e-business and Information Systems
Java APIs Client-Side applications Server-Side applications Client/Server applications Internet (Web) applications e-business and Information Systems
JAVA Compiler Java Compiler Java Byte Code Source Code javac Executable by JVM Readable by human e-business and Information Systems
Java Byte Code JAVA Virtual Machine (JVM) Windows OS JVM for Windows JVM for Linux Linux OS interpreter java Mac OS JVM for Mac Executable by JVM HP OS JVM for HP JVM - JRE e-business and Information Systems
JavaSoftware Development Kit • Download and install: • SDK 1.3 or higher • Commands in bin directory: • javac – java compiler • java - execution • jar – java zip/tar e-business and Information Systems
Java Example:Source Code //File: HelloWorld.java import java.io.*; publicclass HelloWorld { publicstaticvoid main(String[] args){ System.out.println("Hello World!"); } //End of main } //End of class e-business and Information Systems
Java Example:Generate Byte Code Source Code: HelloWorld.java Set Path: set path=c:\sdk1.3\bin;%path% Compile: javac HelloWorld.java Byte code: HelloWorld.class e-business and Information Systems
Java Example:Execute ByteCode java HelloWorld e-business and Information Systems
Java Example:Windows98 - DOS e-business and Information Systems