Compilation Pb existant sous JDK 1.3 -> 1.5
Résolu
Arno59
Messages postés
4753
Statut
Contributeur
-
Arno59 Messages postés 4753 Statut Contributeur -
Arno59 Messages postés 4753 Statut Contributeur -
Bonjour,
Compilation source sous JDK 1.5 :
Source: réalisé le 29/01/2003 sous JDK 1.3
Cmd (Windows ) et shell (Linux)
C:\Documents and Settings\Salut\Bureau\Cours_Java\29-01-2003>javac Prog2.java
C:\Documents and Settings\Salut\Bureau\Cours_Java\29-01-2003>java Prog2
il y a 0arguments
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 0
at Prog2.main(Prog2.java:13)
C:\Documents and Settings\Salut\Bureau\Cnam2003\29-01-2003>
Compilation source sous JDK 1.5 :
Source: réalisé le 29/01/2003 sous JDK 1.3
public class Prog2{
public static void main(String[] args){
System.out.println("il y a "+ args.length +"arguments");
System.out.println("arguments 1"+ args[0]);
System.out.println("arguments 2"+ args[1]);
}
}
Cmd (Windows ) et shell (Linux)
C:\Documents and Settings\Salut\Bureau\Cours_Java\29-01-2003>javac Prog2.java
C:\Documents and Settings\Salut\Bureau\Cours_Java\29-01-2003>java Prog2
il y a 0arguments
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 0
at Prog2.main(Prog2.java:13)
C:\Documents and Settings\Salut\Bureau\Cnam2003\29-01-2003>
A voir également:
- Compilation Pb existant sous JDK 1.3 -> 1.5
- Breach compilation c'est quoi - Guide
- 1.3 ghz ✓ - Forum PC portable
- Adobe audition 1.5 - Forum Création et production musicale
- Ouvrir compte gmail existant ✓ - Forum Gmail
- Comment créer un groupe whatsapp à partir d'un groupe existant - Guide