Download Day 1 -- Monday

Survey
yes no Was this document useful for you?
   Thank you for your participation!

* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project

Document related concepts
no text concepts found
Transcript
CPRG 215
Introduction to
Object-Oriented Programming with Java
Module 1-Introduction to Java
Topic 1.2
Getting the Tools and Setting
Up the Development Machine
Produced by Harvey Peters, 2008
Copyright SAIT
Please read the following sections
in your textbook
Core Java, Volume I–Fundamentals, Eighth Edition
By Cay S. Horstmann & Gary Cornell
•Chapter 2 - The Java Programming Environment
•Installing the Java Development Kit
•Choosing a Development Environment
•Using the Command-Line Tools
•Using an Integrated Development Environment
•Running a Graphical Application
CPRG 215 Module 1.2- Getting the Tools and Setting Up the Development Machine
Copyright SAIT
Building the development machine
• http://java.sun.com
• Various versions
– Java SE -- Standard Edition, for desktop applications,
Applets, GUI, network, and more
– Java EE -- Enterprise Edition, for Java Server Pages,
Servlets, Web Applications
– Java ME -- Micro Edition, for small portable and/or
wireless devices
CPRG 215 Module 1.2- Getting the Tools and Setting Up the Development Machine
Copyright SAIT
Topic 1.2.1
Building the development machine
Acronyms
JDK
Java Development Kit
API
Application Program Interface
SDK
Software Development Kit
JRE
Java Runtime Edition
JDBC
Java Database Connectivity
JDO
Java Data Objects
IDE
Interactive Development Environment
(programming tool, such as Eclipse,
NetBeans, Jbuilder, etc.)
CPRG 215 Module 1.2- Getting the Tools and Setting Up the Development Machine
Copyright SAIT
Topic 1.2.1
Building the development machine
• http://java.sun.com/reference/api
• Documentation
– APIs (Application Program Interface)
– Download or use online
CPRG 215 Module 1.2- Getting the Tools and Setting Up the Development Machine
Copyright SAIT
Topic 1.2.1
Building the development machine
• Versions
– 1.0 – 1.1 primitive
– 1.2 – first stable version
• Known as Java 2, major structural changes
– 1.3.1 – next popular version
• Used by Oracle 8
– 1.4.2 – popular version
– 1.5 – known as Java 5
– 1.6 – known as Java 6
CPRG 215 Module 1.2- Getting the Tools and Setting Up the Development Machine
Copyright SAIT
Topic 1.2.1
Building the development machine
• Installation directory contents
– bin
- binary executable files
• Windows versions have “.exe” extension
Program Name
Function
java
runtime program
javac
compiler
javadoc
documentation generator
jar
java archive tool
jarsigner
attach security certificates to archives
keytool
create and store keys & certificates
policytool
set security policies for O/S
CPRG 215 Module 1.2- Getting the Tools and Setting Up the Development Machine
Copyright SAIT
Topic 1.2.1
Building the development machine
• Installation directory contents
– jre (Java runtime edition)
• bin
– Contains java runtime but not compiler
• lib
– library of runtime classes in .jar files
– Contains rt.jar which is the main library of java classes for
standard edition
– contains an ext directory for .jar files that extend Java’s class
libraries
CPRG 215 Module 1.2- Getting the Tools and Setting Up the Development Machine
Copyright SAIT
Topic 1.2.1
The API
• Packages in the Java Class Library:
–
–
–
–
–
–
–
java.lang
java.awt
java.applet
java.net
java.io
java.util
more…
CPRG 215 Module 1.2- Getting the Tools and Setting Up the Development Machine
Copyright SAIT
Topic 1.2.2
Related documents