SlideShare une entreprise Scribd logo
1  sur  5
Télécharger pour lire hors ligne
Le JDK en 5 minutes
          grand maximum...




               Sylvain Leroux – www.chicoree.fr – 2009 – Licence CC-BY3.0
src                                  1           Editer


       fr              sh$ mkdir ­p src/fr/chicoree
                       sh$ vi src/fr/chicoree/Hello.java

            chicoree




                       Hello.java

      package fr.chicoree;

      class Hello {
          public static void main(String[] args) {
              System.out.println("Hello Java!");
          }
      }
                                    Sylvain Leroux – www.chicoree.fr – 2009 – Licence CC-BY3.0
2           Compiler

classes
                  sh$ mkdir classes
                  sh$ javac ­d classes 
                            ­sourcepath src 
                            src/fr/chicoree/Hello.java

  src


          fr


               chicoree




                          Hello.java

                                       Sylvain Leroux – www.chicoree.fr – 2009 – Licence CC-BY3.0
3           Packager



                  sh$ (cd classes/; jar cvf hello.jar * )
classes


          fr


               chicoree




                          Hello.class




                                        Sylvain Leroux – www.chicoree.fr – 2009 – Licence CC-BY3.0
4           Exécuter




hello.jar                   sh$ java ­cp hello.jar 
                                         fr.chicoree.Hello


            fr


                 chicoree




                            Hello.class




                                          Sylvain Leroux – www.chicoree.fr – 2009 – Licence CC-BY3.0

Contenu connexe

En vedette

The Big Dutch 20 Year 730 Million Page Digitisation Challenge
The  Big Dutch 20 Year  730 Million Page Digitisation  ChallengeThe  Big Dutch 20 Year  730 Million Page Digitisation  Challenge
The Big Dutch 20 Year 730 Million Page Digitisation ChallengeOlaf Janssen
 
Email and Social Media 2010
Email and Social Media 2010Email and Social Media 2010
Email and Social Media 2010Steve Kemish
 
Word Bank
Word BankWord Bank
Word Banklucia95
 
Delpher - presentatie voor Digitale Bibliotheek voor de Nederlandse Letteren ...
Delpher - presentatie voor Digitale Bibliotheek voor de Nederlandse Letteren ...Delpher - presentatie voor Digitale Bibliotheek voor de Nederlandse Letteren ...
Delpher - presentatie voor Digitale Bibliotheek voor de Nederlandse Letteren ...Olaf Janssen
 
πρόγραμμα σεμιναρίου διδακτικής της βιολογίας
πρόγραμμα σεμιναρίου διδακτικής της βιολογίαςπρόγραμμα σεμιναρίου διδακτικής της βιολογίας
πρόγραμμα σεμιναρίου διδακτικής της βιολογίαςChristos Gotzaridis
 
Early Dutch Books Online - teaser
Early Dutch Books Online - teaserEarly Dutch Books Online - teaser
Early Dutch Books Online - teaserOlaf Janssen
 
πρώτα σχόλια για την διδακτέα ύλη φυσικησ και χημειασ του γυμνασίου 2012 13
πρώτα σχόλια για την διδακτέα  ύλη φυσικησ και χημειασ  του γυμνασίου 2012 13πρώτα σχόλια για την διδακτέα  ύλη φυσικησ και χημειασ  του γυμνασίου 2012 13
πρώτα σχόλια για την διδακτέα ύλη φυσικησ και χημειασ του γυμνασίου 2012 13Christos Gotzaridis
 
Open data sets of the Koninklijke Bibliotheek - Opportunities for reuse on Wi...
Open data sets of the Koninklijke Bibliotheek - Opportunities for reuse on Wi...Open data sets of the Koninklijke Bibliotheek - Opportunities for reuse on Wi...
Open data sets of the Koninklijke Bibliotheek - Opportunities for reuse on Wi...Olaf Janssen
 
Bing Shopping program - Merchant Integration Guide
Bing Shopping program - Merchant Integration GuideBing Shopping program - Merchant Integration Guide
Bing Shopping program - Merchant Integration GuideJuan Pittau
 
How to Measure Inbound Markerting
How to Measure Inbound MarkertingHow to Measure Inbound Markerting
How to Measure Inbound MarkertingOptify
 
Internet factbook (diritto_&_politica)
Internet factbook (diritto_&_politica)Internet factbook (diritto_&_politica)
Internet factbook (diritto_&_politica)Riccardo Fabio Loconte
 
Df es 0116-2000 sre
Df es 0116-2000 sreDf es 0116-2000 sre
Df es 0116-2000 srejsoeiro
 
Volcanic eruption (2)
Volcanic eruption (2)Volcanic eruption (2)
Volcanic eruption (2)Shai Omarali
 
Wikipedia en de Koninklijke Bibliotheek: samen een wereldwijd bereik
Wikipedia en de Koninklijke Bibliotheek:  samen een wereldwijd bereik Wikipedia en de Koninklijke Bibliotheek:  samen een wereldwijd bereik
Wikipedia en de Koninklijke Bibliotheek: samen een wereldwijd bereik Olaf Janssen
 

En vedette (20)

Anschp18
Anschp18Anschp18
Anschp18
 
Social media
Social mediaSocial media
Social media
 
The Big Dutch 20 Year 730 Million Page Digitisation Challenge
The  Big Dutch 20 Year  730 Million Page Digitisation  ChallengeThe  Big Dutch 20 Year  730 Million Page Digitisation  Challenge
The Big Dutch 20 Year 730 Million Page Digitisation Challenge
 
Email and Social Media 2010
Email and Social Media 2010Email and Social Media 2010
Email and Social Media 2010
 
Word Bank
Word BankWord Bank
Word Bank
 
Delpher - presentatie voor Digitale Bibliotheek voor de Nederlandse Letteren ...
Delpher - presentatie voor Digitale Bibliotheek voor de Nederlandse Letteren ...Delpher - presentatie voor Digitale Bibliotheek voor de Nederlandse Letteren ...
Delpher - presentatie voor Digitale Bibliotheek voor de Nederlandse Letteren ...
 
πρόγραμμα σεμιναρίου διδακτικής της βιολογίας
πρόγραμμα σεμιναρίου διδακτικής της βιολογίαςπρόγραμμα σεμιναρίου διδακτικής της βιολογίας
πρόγραμμα σεμιναρίου διδακτικής της βιολογίας
 
Early Dutch Books Online - teaser
Early Dutch Books Online - teaserEarly Dutch Books Online - teaser
Early Dutch Books Online - teaser
 
πρώτα σχόλια για την διδακτέα ύλη φυσικησ και χημειασ του γυμνασίου 2012 13
πρώτα σχόλια για την διδακτέα  ύλη φυσικησ και χημειασ  του γυμνασίου 2012 13πρώτα σχόλια για την διδακτέα  ύλη φυσικησ και χημειασ  του γυμνασίου 2012 13
πρώτα σχόλια για την διδακτέα ύλη φυσικησ και χημειασ του γυμνασίου 2012 13
 
Trial3
Trial3Trial3
Trial3
 
Open data sets of the Koninklijke Bibliotheek - Opportunities for reuse on Wi...
Open data sets of the Koninklijke Bibliotheek - Opportunities for reuse on Wi...Open data sets of the Koninklijke Bibliotheek - Opportunities for reuse on Wi...
Open data sets of the Koninklijke Bibliotheek - Opportunities for reuse on Wi...
 
Id
IdId
Id
 
Bing Shopping program - Merchant Integration Guide
Bing Shopping program - Merchant Integration GuideBing Shopping program - Merchant Integration Guide
Bing Shopping program - Merchant Integration Guide
 
How to Measure Inbound Markerting
How to Measure Inbound MarkertingHow to Measure Inbound Markerting
How to Measure Inbound Markerting
 
Internet factbook (diritto_&_politica)
Internet factbook (diritto_&_politica)Internet factbook (diritto_&_politica)
Internet factbook (diritto_&_politica)
 
The ABC’s of Health Insurance
The ABC’s of Health Insurance The ABC’s of Health Insurance
The ABC’s of Health Insurance
 
Caso WebQuest
Caso WebQuestCaso WebQuest
Caso WebQuest
 
Df es 0116-2000 sre
Df es 0116-2000 sreDf es 0116-2000 sre
Df es 0116-2000 sre
 
Volcanic eruption (2)
Volcanic eruption (2)Volcanic eruption (2)
Volcanic eruption (2)
 
Wikipedia en de Koninklijke Bibliotheek: samen een wereldwijd bereik
Wikipedia en de Koninklijke Bibliotheek:  samen een wereldwijd bereik Wikipedia en de Koninklijke Bibliotheek:  samen een wereldwijd bereik
Wikipedia en de Koninklijke Bibliotheek: samen een wereldwijd bereik
 

Plus de Sylvain Leroux

Plus de Sylvain Leroux (8)

ModèLes DexéCution
ModèLes DexéCutionModèLes DexéCution
ModèLes DexéCution
 
Java Platform
Java PlatformJava Platform
Java Platform
 
UML+Python
UML+PythonUML+Python
UML+Python
 
Premier contact avec Subversion
Premier contact avec SubversionPremier contact avec Subversion
Premier contact avec Subversion
 
Notion de fonction en Python
Notion de fonction en PythonNotion de fonction en Python
Notion de fonction en Python
 
Poo
PooPoo
Poo
 
Variables variables
Variables variablesVariables variables
Variables variables
 
Merise vs UML
Merise vs UMLMerise vs UML
Merise vs UML
 

Le Jdk En 5 Minutes

  • 1. Le JDK en 5 minutes grand maximum... Sylvain Leroux – www.chicoree.fr – 2009 – Licence CC-BY3.0
  • 2. src 1 Editer fr sh$ mkdir ­p src/fr/chicoree sh$ vi src/fr/chicoree/Hello.java chicoree Hello.java package fr.chicoree; class Hello {     public static void main(String[] args) {         System.out.println("Hello Java!");     } } Sylvain Leroux – www.chicoree.fr – 2009 – Licence CC-BY3.0
  • 3. 2 Compiler classes sh$ mkdir classes sh$ javac ­d classes            ­sourcepath src            src/fr/chicoree/Hello.java src fr chicoree Hello.java Sylvain Leroux – www.chicoree.fr – 2009 – Licence CC-BY3.0
  • 4. 3 Packager sh$ (cd classes/; jar cvf hello.jar * ) classes fr chicoree Hello.class Sylvain Leroux – www.chicoree.fr – 2009 – Licence CC-BY3.0
  • 5. 4 Exécuter hello.jar sh$ java ­cp hello.jar               fr.chicoree.Hello fr chicoree Hello.class Sylvain Leroux – www.chicoree.fr – 2009 – Licence CC-BY3.0