Professional Documents
Culture Documents
SL-275-SE6
Module 1
Executing Your First Java Application
Objectives
Examine the Java Development Kit (JDK) software Examine Java application loading and executing Create a simple Java application
Module 1, slide 2 of 24
JDK
Module 1, slide 3 of 24
Strictly speaking the Java programming language is not a component of the JDK software. Nevertheless, for the purposes of providing a more complete discussion, it is treated as a pseudo component. Download URL: http://java.sun.com/javase/downloads/index.jsp
Java Programming Language
Copyright 2007 Sun Microsystems, Inc. All Rights Reserved. Sun Services, Revision G
Module 1, slide 4 of 24
Module 1, slide 5 of 24
Module 1, slide 6 of 24
Module 1, slide 7 of 24
" + price;
Module 1, slide 8 of 24
Module 1, slide 9 of 24
Basic Tools
Tool Name
javac java jdb javadoc jar
Function
The compiler for the Java programming language The launcher for Java technology applications The Java debugger The API document generator Java Archive (JAR) le creator and management tool
Module 1, slide 10 of 24
Advanced Tools
Tool Category
Security tools Internationalization tools Remote method invocation (RMI) tools
Comments
Implement security policies in applications Enable applications to be localized Create (network) distributed applications
Common object request Create network applications that are based on CORBA broker architecture technology (CORBA) tools Java deployment tools Java Plug-in tools Java web start tools Support application deployment Provide utilities for use with the Java Plug-in Used with Java web start technology
Module 1, slide 11 of 24
Advanced Tools
Tool Category
Java Monitoring and Management (JMX) console Java web services tools Experimental tools
Comments
Used in conjunction with JMX technology
Support Java web service application development Might not be available with future releases of the Java SE JDK
Module 1, slide 12 of 24
JDK Libraries
Module 1, slide 13 of 24
JDK Libraries
Library Name
java.lang java.util java.io java.math java.text javax.crypto java.net java.sql javax.swing
Module 1, slide 14 of 24
Module 1, slide 15 of 24
Module 1, slide 16 of 24
JVM
OS
Hardware Platform
Are JVM implementations platform dependent? Are Java technology applications platform dependent? What is a Java Hotspot JVM implementation? What is a Java Hotspot client JVM implementation? What is a Java Hotspot server JVM implementation?
Module 1, slide 17 of 24
Module 1, slide 18 of 24
Module 1, slide 19 of 24
javac
TestGreeting.class
Hardware
Module 1, slide 20 of 24
Module 1, slide 21 of 24
Module 1, slide 22 of 24
Module 1, slide 23 of 24
Compile
javac
TestGreeting.class
Greeting.class
Also loads
JVM
Runtime
UNIX JVM
DOS JVM
JavaOS
Module 1, slide 24 of 24