Laboratorio II Introduzione all`ambiente di sviluppo

Laboratorio II
Raffaella Brighi, a.a. 2005/06
Corso di Laboratorio II. A.A. 2005-06
CdL Operatore Informatico Giuridico.
Introduzione all’ambiente di
sviluppo
Raffaella Brighi, a.a. 2005/06
Corso di Laboratorio II. A.A. 2005-06
CdL Operatore Informatico Giuridico.
1
JSDK
„
Java SDK - Software Development Kit
(http://java.sun.com/j2se/downloads/)
contiene: J2SE Runtime Environment (JRE)
and J2SE Development Kit (JDK).
‰
‰
‰
„
compilatore Java
debugger
interprete Java
Versione J2SE v 1.4.2_09 SDK
Contents
- J2SE API
- Java Virtual Machine
- Java Platform Tools
There are two principal products in the J2SE platform family: J2SE
Runtime Environment (JRE) and J2SE Development Kit (JDK). The
JRE provides the Java APIs, Java virtual machine, and other
components necessary to run applets and applications written in the
Java programming language. It is also the foundation for the
technologies in the Java 2 Platform, Enterprise Edition (J2EE) for
enterprise software development and deployment. The JRE does not
contain tools and utilities such as compilers or debuggers for
developing applets and applications.
The JDK is a superset of the JRE, and contains everything that is in
the JRE, plus tools such as the compilers and debuggers necessary
for developing applets and applications.
By http://java.sun.com/j2se/overview.html
2
By http://java.sun.com/j2se/overview.html
„
„
J2SE API
The J2SE application programming interface (API) defines the prescribed manner by which an
applet or application can make requests to and use the functionality available in the compiled
J2SE class libraries. The J2SE class libraries are also part of the J2SE platform.
The J2SE API consists of technologies we have organized into two groups: Core Java and Desktop
Java.
„
„
•
Core Java provides essential functionality for writing powerful enterprise-worthy
programs in key areas such as database access, security, remote method invocation
(RMI), and communications, to name a few.
•
Desktop Java provides a full range of features to help build desktop applications that
provide a rich user experience. Desktop Java consists of deployment products such
as Java Plug-in, component modeling APIs such as JavaBeans, graphical user
interface (GUI) APIs such as the Java Foundation Classes (JFC) and Swing, and
multimedia APIs such as Java3D.
To learn more about Java Desktop, visit the Desktop Java community collaboration site and
java.com consumer site. For information on how to use the J2SE APIs, refer to the API
(Javadocs) and technical documentation.
By http://java.sun.com/j2se/overview.html
3
Java Virtual Machine
The Java Virtual Machine is responsible for the hardware- and operating
system-independence of the J2SE platform, the small size of compiled code
(bytecodes), and platform security.
Java Platform Tools
The J2SE platform works with an array of tools, including Integrated
Development Environments (IDEs), performance and testing tools, and
performance monitoring tools.
By http://java.sun.com/j2se/overview.html
Java API Documentation
„
„
E’ la documentazione delle API Java. Dal sito
può essere scaricata la documentazione delle
API della libreria standard Java.
J2SE v 1.4.2 Documentation
4
Gli IDE
„
„
GLI IDE (Integrated Software Enviroment)
sono ambienti di sviluppo integrati che
mettono insieme Editor, compilatore,
interprete, debugger, documentazione, ecc.
in una unica soluzione.
Nel corso utilizzeremo NetBeans IDE 3.6
http://www.netbeans.org
http://www.netbeans.info/downloads/download.php?a=arch&p=1
Quick Start
„
„
„
„
„
„
„
„
„
Filesystems window
Project Manager
JavaDoc Manager
Aggiungere directories (mount>local
directory)
Creare ed editare codice sorgente Java
Compilare Programmi Java
Debuggare programmi Java
Packaging and deploying
Utilizzare JavaDoc
5