0% found this document useful (0 votes)
43 views3 pages

TP1 - Tutorial Install JDK - Final

This document provides instructions for installing the Java Development Kit (JDK) on Windows. It discusses the differences between the JDK and Java Runtime Environment (JRE) and why the JDK is needed for Java development. The steps outlined include uninstalling any previous JDK/JRE versions, downloading and installing the latest JDK, configuring the PATH environment variable, compiling and running a simple "Hello World" Java program to test the installation.

Uploaded by

Manel Mrabet
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
43 views3 pages

TP1 - Tutorial Install JDK - Final

This document provides instructions for installing the Java Development Kit (JDK) on Windows. It discusses the differences between the JDK and Java Runtime Environment (JRE) and why the JDK is needed for Java development. The steps outlined include uninstalling any previous JDK/JRE versions, downloading and installing the latest JDK, configuring the PATH environment variable, compiling and running a simple "Hello World" Java program to test the installation.

Uploaded by

Manel Mrabet
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

Module: JAVA ISTIC

Niveau : LFSI2 A.U: 2017-2018

TP 1 : Installation du JDK

JDK
L’outil de développement Java (JDK: Java Development Kit), officiellement nommé
"Java Platform, Standard Edition (Java SE)" est nécessaire pour écrire les progrmmes Java. Le
JDK ou Java SE est gratuitement valable sur Sun Microsystems (qui fait partie aujourd’hui de
Oracle) : http://www.oracle.com/technetwork/java/javase/overview/index.html.

JDK ou JRE?
Le JRE (Java Runtime Environment) présente l’environnement permettant l’exécution
(running) des programmes Java. Le JDK (Java Development Kit), contenant le JRE plus les
outils de développement (tels que le compilateur et le debuggeur), est nécessaire pour
l’écriture et l’exécution des applications Java. En d’autres termes, Le JRE est un sous-
ensemble du JDK. C’est ainsi, qu’il faut installer le JDK (contenant le JRE) pour manipuler
les programmes Java.

Proposé par : Dr. Ben Othman Ibtissem Page 1 sur 3


Module: JAVA ISTIC
Niveau : LFSI2 A.U: 2017-2018

Les versions du JDK

Version Date Description

JDK Alpha and


1995 Sun announced Java in September 23, 1995.
Beta
Originally called Oak (named after the oak tree outside James
JDK 1.0 January 23, 1996
Gosling's office). Renamed to Java 1 in JDK 1.0.2.
Introduced AWT event model, inner class, JavaBean, JDBC,
JDK 1.1 February 19, 1997
and RMI.
Re-branded as "Java 2" and renamed JDK to J2SE (Java 2
Standard Edition). Also released J2EE (Java 2 Enterprise
Edition) and J2ME (Java 2 Micro Edition). Included JFC
J2SE 1.2 (JDK 1.2) December 8, 1998
(Java Foundation Classes - Swing, Accessibility API, Java
2D, Pluggable Look and Feel and Drag and Drop). Introduced
Collection Framework and JIT compiler.

J2SE 1.3 (JDK 1.3) May 8, 2000 Introduced Hotspot JVM.

Introduced assert, non-blocking IO (nio), logging API, image


J2SE 1.4 (JDK 1.4) February 6, 2002
IO, Java webstart, regular expression support.
Officially called 5.0 instead of 1.5. Introduced generics,
J2SE 5.0 (JDK 1.5) September 30, 2004 autoboxing/unboxing, annotation, enum, varargs, for-each
loop, static import.

Java SE 6 (JDK 1.6) December 11, 2006 Renamed J2SE to Java SE (Java Standard Edition).

Java SE 7 (JDK 1.7) July 28, 2011 First version after Oracle purchased Sun (called Oracle JDK).

included support for Lambda expressions, default and static


Java SE 8 (JDK 1.8) March 18, 2014 methods in interfaces, improved collection, and JavaScript
runtime. Also integrated JavaFX graphics.
modularization of the JDK under project Jigsaw, the Java
Java SE 9 (JDK 1.9) September 21, 2017
Shell (jshell).
new versioning format in YY.M. So far the versions
Java SE 10 (aka
March, 2018 announced using this format are 18.3 non-LTS in March 2018
JDK 18.3)
and 18.9 LTS in September 2018.

Proposé par : Dr. Ben Othman Ibtissem Page 2 sur 3


Module: JAVA ISTIC
Niveau : LFSI2 A.U: 2017-2018

Installation du JDK sous Windows


Etape 0: Désinstallation de l’ancienne version du JDK/JRE
Step 1: Download JDK
Step 2: Install JDK and JRE
Step 3: Include JDK's "bin" Directory in the PATH
Step 4: Verify the JDK Installation

Premier programme

1. Ecrire le programme suivant avec bloc-notes et enregistrer le sous Helloworld.java


sous la racine C:\.

public class Helloworld {


public static void main(String[] args) {
System.out.println("Hello World!");
}
}

2. Essayer de compiler ce programme avec la commande javac, avant l’installation


du JDK.
3. Installer maintenant la dernière version du JDK .
4. Ressayer de compiler une autre fois le même programme.
5. Paramétrer correctement la variable PATH (Variables d’environnement )
- set path=%path;C:\Java\jdk\bin
- set classpath=%classpath;C:\Java\jdk\lib
6. Maintenant compiler le programme
7. Tapez dir et indiquer le nom de fichier généré.
8. Exécuter le fichier généré avec la commande java.

Proposé par : Dr. Ben Othman Ibtissem Page 3 sur 3

You might also like