Vous êtes sur la page 1sur 5

*Programmation Orientée Objet*

Compte rendu TP n°1 : Prise en main des outils de développement Java

Exercice 0 : vérifier la présence de java sur votre poste de travail

Exercice 1 : consulter la documentation en ligne de Java SE :

1) L’URL du site officiel d'Oracle pour les tutoriaux en ligne de Java SE :

http://docs.oracle.com/javase/tutorial/

Iheb belghaieb et hamza haj salem Page 1


2)
les programmes d'apprentissage (trials) couvrant les bases du langage Java sont 7 :

 Getting Started — An introduction to Java technology and lessons on


installing Java development software and using it to create a simple
program.
 Learning the Java Language — Lessons describing the essential
concepts and features of the Java Programming Language.
 Essential Java Classes — Lessons on exceptions, basic input/output,
concurrency, regular expressions, and the platform environment.
 Collections — Lessons on using and extending the Java Collections
Framework.
 Date-Time APIs — How to use the java.time pages to write date and
time code.
 Deployment — How to package applications and applets using JAR files,
and deploy them using Java Web Start and Java Plug-in.
 Preparation for Java Programming Language Certification  — List of
available training and tutorial resources.

Compilation: javac HelloWorld.java


* Execution: java HelloWorld
*
* Prints "Hello, World". By tradition, this is everyone's
first program.
*
* % java HelloWorld
* Hello, World
*
* These 17 lines of text are comments. They are not part of
the program;
* they serve to remind us about its properties. The first
two lines tell
* us what to type to compile and test the program. The next
line describes
* the purpose of the program. The next few lines give a
sample execution
* of the program and the resulting output. We will always
include such
* lines in our programs and encourage you to do the same.
*

**************************************************************
****************/

public class HelloWorld {

public static void main(String[] args) {


// Prints "Hello, World" to the terminal window.

Iheb belghaieb et hamza haj salem Page 2


System.out.println("Hello, World");
}

}
1/

.La commande qu’on a utilisé est Run Project

.le nom du fichier créé par cette commande de compilation est Hello
World App

Iheb belghaieb et hamza haj salem Page 3


2/

javac: Le compilateur pour le langage de programmation Java


java : Le lanceur pour les applications Java. Dans cette version, un seul lanceur est
utilisé à la fois pour le développement et le déploiement.
L'ancien lanceur déploiement, jre, est plus assuré
Appletviewer: Exécution et débogage des applets sans un navigateur Web
javadoc : générateur de documentation de l'API.
javap : Fichier de classe désassembleur
jdb : Le Java Debugger

Iheb belghaieb et hamza haj salem Page 4


jar signifier: Créer et gérer Java Archive (JAR) Les fichiers.

Que signifie l'acronyme jar et qu'est-ce qu'un fichier .jar ? :

Que signifie l'option -showversion de l'interpréteur java ? Quelle est la différence avec
l'option -version ? :

Iheb belghaieb et hamza haj salem Page 5

Vous aimerez peut-être aussi