Bonsoir la zone
Pour un concours de prog’, je dois me mettre au java, mais mon gentil pc qui m’a installé jre sans broncher, me fait des histoires pour JDK (Java developper kit). Je mets le .bin dans un repertoire rien que pour lui, mais voila ce qu’il me dit:
master:/usr/jdk# ./jdk-6-nb-5_5-linux.bin
Initializing InstallShield Wizard........
./jdk-6-nb-5_5-linux.bin: line 189: bc: command not found
./jdk-6-nb-5_5-linux.bin: line 404: [: : integer expression expected
./jdk-6-nb-5_5-linux.bin: line 189: bc: command not found
./jdk-6-nb-5_5-linux.bin: line 404: [: : integer expression expected
./jdk-6-nb-5_5-linux.bin: line 189: bc: command not found
./jdk-6-nb-5_5-linux.bin: line 404: [: : integer expression expected
./jdk-6-nb-5_5-linux.bin: line 189: bc: command not found
./jdk-6-nb-5_5-linux.bin: line 404: [: : integer expression expected
./jdk-6-nb-5_5-linux.bin: line 189: bc: command not found
./jdk-6-nb-5_5-linux.bin: line 1236: [: : integer expression expected
./jdk-6-nb-5_5-linux.bin: line 189: bc: command not found
./jdk-6-nb-5_5-linux.bin: line 1236: [: : integer expression expected
./jdk-6-nb-5_5-linux.bin: line 189: bc: command not found
./jdk-6-nb-5_5-linux.bin: line 1236: [: : integer expression expected
./jdk-6-nb-5_5-linux.bin: line 189: bc: command not found
./jdk-6-nb-5_5-linux.bin: line 1236: [: : integer expression expected
./jdk-6-nb-5_5-linux.bin: line 189: bc: command not found
./jdk-6-nb-5_5-linux.bin: line 382: [: : integer expression expected
./jdk-6-nb-5_5-linux.bin: line 189: bc: command not found
./jdk-6-nb-5_5-linux.bin: line 382: [: : integer expression expected
./jdk-6-nb-5_5-linux.bin: line 189: bc: command not found
./jdk-6-nb-5_5-linux.bin: line 382: [: : integer expression expected
./jdk-6-nb-5_5-linux.bin: line 189: bc: command not found
./jdk-6-nb-5_5-linux.bin: line 382: [: : integer expression expected
master:/usr/jdk# ls
jdk-6-nb-5_5-linux.bin
voila, je suppose qu’il me manque un truc, si quelqu’un pouvait m’aider… merci d’avance.
[quote=“karith, post:1, topic: 48928”]Bonsoir la zone
Pour un concours de prog’, je dois me mettre au java, mais mon gentil pc qui m’a installé jre sans broncher, me fait des histoires pour JDK (Java developper kit). Je mets le .bin dans un repertoire rien que pour lui, mais voila ce qu’il me dit:
master:/usr/jdk# ./jdk-6-nb-5_5-linux.bin
Initializing InstallShield Wizard........
./jdk-6-nb-5_5-linux.bin: line 189: bc: command not found
./jdk-6-nb-5_5-linux.bin: line 404: [: : integer expression expected
./jdk-6-nb-5_5-linux.bin: line 189: bc: command not found
./jdk-6-nb-5_5-linux.bin: line 404: [: : integer expression expected
./jdk-6-nb-5_5-linux.bin: line 189: bc: command not found
./jdk-6-nb-5_5-linux.bin: line 404: [: : integer expression expected
./jdk-6-nb-5_5-linux.bin: line 189: bc: command not found
./jdk-6-nb-5_5-linux.bin: line 404: [: : integer expression expected
./jdk-6-nb-5_5-linux.bin: line 189: bc: command not found
./jdk-6-nb-5_5-linux.bin: line 1236: [: : integer expression expected
./jdk-6-nb-5_5-linux.bin: line 189: bc: command not found
./jdk-6-nb-5_5-linux.bin: line 1236: [: : integer expression expected
./jdk-6-nb-5_5-linux.bin: line 189: bc: command not found
./jdk-6-nb-5_5-linux.bin: line 1236: [: : integer expression expected
./jdk-6-nb-5_5-linux.bin: line 189: bc: command not found
./jdk-6-nb-5_5-linux.bin: line 1236: [: : integer expression expected
./jdk-6-nb-5_5-linux.bin: line 189: bc: command not found
./jdk-6-nb-5_5-linux.bin: line 382: [: : integer expression expected
./jdk-6-nb-5_5-linux.bin: line 189: bc: command not found
./jdk-6-nb-5_5-linux.bin: line 382: [: : integer expression expected
./jdk-6-nb-5_5-linux.bin: line 189: bc: command not found
./jdk-6-nb-5_5-linux.bin: line 382: [: : integer expression expected
./jdk-6-nb-5_5-linux.bin: line 189: bc: command not found
./jdk-6-nb-5_5-linux.bin: line 382: [: : integer expression expected
master:/usr/jdk# ls
jdk-6-nb-5_5-linux.bin
voila, je suppose qu’il me manque un truc, si quelqu’un pouvait m’aider… merci d’avance.[/quote]
[quote=“karith, post:3, topic: 48928”]merci… (me sens con des fois)
Par contre, là, je dois installer un fichier .jar, comment je fais?[/quote]
Un fichier .jar ne s’installe pas. Il contient le code exécutable par la machine virtuelle, sous forme de fichiers .class compressés en une Java ARchive. Ce sont des bibliothèques de ton prof?
Normalement, tu devrais modifier ta variable d’environnement CLASSPATH pour qu’elle prenne en compte l’emplacement de ton fichier sans que tu aies à le recopier partout ou tu veux l’utiliser. (un répertoire destiné à tes packages Java serait pas du luxe, surtout si tu continues à programmer avec).
Par contre, ça me rappelle une jolie blague que m’a fait une ubuntu : javac -version renvoyait IBM … chépaquoi eclipse
Et ce truc, qui s’est installé, qu’on a l’audace d’appeler compilateur, ben il voulait pas d’un “HashSet” : HashSet is not a generic class.