cprg 215 introduction to object-oriented programming with java module 1-introduction to java topic...
TRANSCRIPT
![Page 1: 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](https://reader036.vdocuments.us/reader036/viewer/2022082818/56649ead5503460f94bb44f4/html5/thumbnails/1.jpg)
CPRG 215
Introduction to Object-Oriented Programming with Java
Module 1-Introduction to Java
Topic 1.2Getting the Tools and SettingUp the Development Machine
Produced by Harvey Peters, 2008Copyright SAIT
![Page 2: 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](https://reader036.vdocuments.us/reader036/viewer/2022082818/56649ead5503460f94bb44f4/html5/thumbnails/2.jpg)
Please read the following sections
in your textbookCore 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 MachineCopyright SAIT
![Page 3: 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](https://reader036.vdocuments.us/reader036/viewer/2022082818/56649ead5503460f94bb44f4/html5/thumbnails/3.jpg)
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
Topic 1.2.1
CPRG 215 Module 1.2- Getting the Tools and Setting Up the Development MachineCopyright SAIT
![Page 4: 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](https://reader036.vdocuments.us/reader036/viewer/2022082818/56649ead5503460f94bb44f4/html5/thumbnails/4.jpg)
Building the development machine
Topic 1.2.1
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 MachineCopyright SAIT
![Page 5: 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](https://reader036.vdocuments.us/reader036/viewer/2022082818/56649ead5503460f94bb44f4/html5/thumbnails/5.jpg)
Building the development machine• http://java.sun.com/reference/api
• Documentation– APIs (Application Program Interface)– Download or use online
Topic 1.2.1
CPRG 215 Module 1.2- Getting the Tools and Setting Up the Development MachineCopyright SAIT
![Page 6: 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](https://reader036.vdocuments.us/reader036/viewer/2022082818/56649ead5503460f94bb44f4/html5/thumbnails/6.jpg)
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
Topic 1.2.1
CPRG 215 Module 1.2- Getting the Tools and Setting Up the Development MachineCopyright SAIT
![Page 7: 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](https://reader036.vdocuments.us/reader036/viewer/2022082818/56649ead5503460f94bb44f4/html5/thumbnails/7.jpg)
• Installation directory contents– bin - binary executable files
• Windows versions have “.exe” extension
Building the development machine
Topic 1.2.1
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 MachineCopyright SAIT
![Page 8: 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](https://reader036.vdocuments.us/reader036/viewer/2022082818/56649ead5503460f94bb44f4/html5/thumbnails/8.jpg)
• 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
Building the development machine
Topic 1.2.1
CPRG 215 Module 1.2- Getting the Tools and Setting Up the Development MachineCopyright SAIT
![Page 9: 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](https://reader036.vdocuments.us/reader036/viewer/2022082818/56649ead5503460f94bb44f4/html5/thumbnails/9.jpg)
The API• Packages in the Java Class Library:
– java.lang– java.awt– java.applet– java.net– java.io– java.util– more…
Topic 1.2.2
CPRG 215 Module 1.2- Getting the Tools and Setting Up the Development MachineCopyright SAIT