Forum |  HardWare.fr | News | Articles | PC | S'identifier | S'inscrire | Shop Recherche
929 connectés 

  FORUM HardWare.fr
  Programmation

  comment installer java sous windows ?

 


 Mot :   Pseudo :  
 
Bas de page
Auteur Sujet :

comment installer java sous windows ?

n°89718
Vinz416
Posté le 15-01-2002 à 21:45:31  profilanswer
 

Voila en cours je commence a programmer en java sous linux
Mais moi je voudrais installer java chez moi sous windows ?? ya koi a installer, comment ca marche ? :??:
merci :jap:  :hello:

mood
Publicité
Posté le 15-01-2002 à 21:45:31  profilanswer
 

n°89720
benou
Posté le 15-01-2002 à 21:49:13  profilanswer
 

tu télécharges la jdk sur le site de SUN la : http://java.sun.com/j2se/1.3/
 
tu lances l'installe, tu ajoutes le rep bin de la jdk dans le path, et ca roule.


---------------
ma vie, mon oeuvre - HomePlayer
n°89723
Vinz416
Posté le 15-01-2002 à 21:52:45  profilanswer
 

oké merci, jai pas trop compris pour le bin et tout, mais jvai deja telecharger ca et jvais essayer de me debrouille :)
merci encore
 :hello:

n°89726
darklord22
Nightwish rulezzzzzzzzzzzzz
Posté le 15-01-2002 à 22:09:05  profilanswer
 

benou a écrit a écrit :

tu télécharges la jdk sur le site de SUN la : http://java.sun.com/j2se/1.3/
 
tu lances l'installe, tu ajoutes le rep bin de la jdk dans le path, et ca roule.  




 
si tu installes le dernier JRE je pense qu'il y a le compilateur dedans et là ton path est mis à jour automatiquement


---------------
What is popular is not always right, what is right is not always popular :D
n°89728
Vinz416
Posté le 15-01-2002 à 22:25:27  profilanswer
 

ben la jai installer java ayé, maintenant j'ai pleins de repertoire dans c:\jdk1.3.1_02\ comme jre, bin, lib ...
alors sous linux moi jfait mon programme avec VI enfin le bloc note, et jenregistre en *.java
ensuite je fais javac nom_fichier.java la compil
puis jobtient un fichier *.class
comment je fais ca sous win ????
encore merci but big newbie en java et encore plus sous win ;)
 :jap:  :hello:

n°89729
darklord22
Nightwish rulezzzzzzzzzzzzz
Posté le 15-01-2002 à 22:30:36  profilanswer
 

Vinz416 a écrit a écrit :

ben la jai installer java ayé, maintenant j'ai pleins de repertoire dans c:\jdk1.3.1_02\ comme jre, bin, lib ...
alors sous linux moi jfait mon programme avec VI enfin le bloc note, et jenregistre en *.java
ensuite je fais javac nom_fichier.java la compil
puis jobtient un fichier *.class
comment je fais ca sous win ????
encore merci but big newbie en java et encore plus sous win ;)
 :jap:  :hello:  




 
java c'est portable. Os indépendant. Idem pour la syntaxe.
Donc tu fais pareil ... Convention de path et de répertoire différente bien sur (\ au lieu de / etc.)


---------------
What is popular is not always right, what is right is not always popular :D
n°89730
darklord22
Nightwish rulezzzzzzzzzzzzz
Posté le 15-01-2002 à 22:31:26  profilanswer
 

Vinz416 a écrit a écrit :

ben la jai installer java ayé, maintenant j'ai pleins de repertoire dans c:\jdk1.3.1_02\ comme jre, bin, lib ...



 
c'est exactement pareil sous linux soi dit en passant !


---------------
What is popular is not always right, what is right is not always popular :D
n°89731
Vinz416
Posté le 15-01-2002 à 22:34:56  profilanswer
 

oui mais c paceke moi sous linux le fichier .java jle met dans nimporte kel repertoire et qd je fait javac fichier.java ca marche.
alors ke la en fait jviens de voir ke jsuis obliger denregistrer mon fichier .java dans le repertoir c:\jdk1.3.1_02\bin\
enfin bon ca marche :)
 :hello:

n°89735
darklord22
Nightwish rulezzzzzzzzzzzzz
Posté le 15-01-2002 à 22:44:43  profilanswer
 

Vinz416 a écrit a écrit :

oui mais c paceke moi sous linux le fichier .java jle met dans nimporte kel repertoire et qd je fait javac fichier.java ca marche.
alors ke la en fait jviens de voir ke jsuis obliger denregistrer mon fichier .java dans le repertoir c:\jdk1.3.1_02\bin\
enfin bon ca marche :)
 :hello:  




 
pas du tout :) Il te suffit d'éditer ta variable classpath
 
set classpath=c:\java
 
tu peux mettre ton .java dans c:\java now
 
A+
 
PS : il y a un topic la dessus dans ce forum
 
http://forum.hardware.fr/forum2.ph [...] ic=&trash=

 

[edtdd]--Message édité par darklord22--[/edtdd]


---------------
What is popular is not always right, what is right is not always popular :D
n°89736
benou
Posté le 15-01-2002 à 22:44:51  profilanswer
 

c'est ce que je te disais pour le path.
 
sous windows (comme sous linux) il y a une variable d'environnement qui contient la liste de tous les réperoires dans lesquels le système doit chercher l'executable quand tu tapes une commande.
 
donc pour qu'il trouve le compilateur quand tu tapes javac il faut que le rep "c:\jdk1.3.1_02\bin" soit dans le PATH.
 
sous win9x tu édit l'autoexec.bat et tu rajoute a la gin :
SET PATH=%PATH%;c:\jdk1.3.1_02\bin
sous win NT ou 2K (ou Me ???), tu vas dans le panneau de config, systeme, avancé, variable d'environnement et tu modifie la variable path dans les variables système.


---------------
ma vie, mon oeuvre - HomePlayer
mood
Publicité
Posté le 15-01-2002 à 22:44:51  profilanswer
 

n°89737
djok_fb
C'était mieux avant!
Posté le 15-01-2002 à 22:45:27  profilanswer
 

si t sous nt/2000/xp, il faut ke tu modifies la variable d'environnement PATH pour lui rajouter ton chemin jusko bin de java...
en l'occurence : c:\jdk1.3.1_02\bin
 
sinon sous 95/98 (je connais pas meuh, mais ca doit etre pareil)
tu modifie ton autoexec.bat, et tu rajoutes c:\jdk1.3.1_02\bin a la variable PATH...
si elle existe pas (ca metonnerai;-) ), tu tapes:
SET PATH = c:\jdk1.3.1_02\bin

n°89738
djok_fb
C'était mieux avant!
Posté le 15-01-2002 à 22:45:49  profilanswer
 

joublié sous 95/98, il faut rebooter...  :(

n°89739
darklord22
Nightwish rulezzzzzzzzzzzzz
Posté le 15-01-2002 à 22:45:49  profilanswer
 

benou a écrit a écrit :

c'est ce que je te disais pour le path.
 
sous windows (comme sous linux) il y a une variable d'environnement qui contient la liste de tous les réperoires dans lesquels le système doit chercher l'executable quand tu tapes une commande.
 
donc pour qu'il trouve le compilateur quand tu tapes javac il faut que le rep "c:\jdk1.3.1_02\bin" soit dans le PATH.
 
sous win9x tu édit l'autoexec.bat et tu rajoute a la gin :
SET PATH=%PATH%;c:\jdk1.3.1_02\bin
sous win NT ou 2K (ou Me ???), tu vas dans le panneau de config, systeme, avancé, variable d'environnement et tu modifie la variable path dans les variables système.  




 
Be si il avait descendur JRE1.3.1_02 ca ne serait pas arrivé :D


---------------
What is popular is not always right, what is right is not always popular :D
n°89740
benou
Posté le 15-01-2002 à 22:46:51  profilanswer
 

darklord22 a écrit a écrit :

 
 
pas du tout :) Il te suffit d'éditer ta variable classpath
set classpath=c:\java
tu peux mettre ton .java dans c:\java now
A+
PS : il y a un topic la dessus dans ce forum
http://forum.hardware.fr/forum2.ph [...] ic=&trash=  




 
nananan, le problème c'est la path, pas le classpath !  
 
quand tu fais l'installe de la jdk, java est executable directement mais javac non ...


---------------
ma vie, mon oeuvre - HomePlayer
n°89741
benou
Posté le 15-01-2002 à 22:47:26  profilanswer
 

darklord22 a écrit a écrit :

 
 
Be si il avait descendur JRE1.3.1_02 ca ne serait pas arrivé :D  




 
y a pas le compilateur avec le JRE ...


---------------
ma vie, mon oeuvre - HomePlayer
n°89742
benou
Posté le 15-01-2002 à 22:48:05  profilanswer
 

djok_fb a écrit a écrit :

si t sous nt/2000/xp, il faut ke tu modifies la variable d'environnement PATH pour lui rajouter ton chemin jusko bin de java...
en l'occurence : c:\jdk1.3.1_02\bin
 
sinon sous 95/98 (je connais pas meuh, mais ca doit etre pareil)
tu modifie ton autoexec.bat, et tu rajoutes c:\jdk1.3.1_02\bin a la variable PATH...
si elle existe pas (ca metonnerai;-) ), tu tapes:
SET PATH = c:\jdk1.3.1_02\bin  




 
quel tricheur celui là !! ;)


---------------
ma vie, mon oeuvre - HomePlayer
n°89745
djok_fb
C'était mieux avant!
Posté le 15-01-2002 à 22:52:06  profilanswer
 

:D  
avec le JRE, y a pas le javac...tant pis...
pis c pas trop grave de toucher au path...
 
y sont ou les veterans du DOS????  ;)

n°89747
benou
Posté le 15-01-2002 à 22:57:40  profilanswer
 

m'en parle pas.  
 
autoexec.bat ...
config.sys ...
memmaker ...
 
que du bonheur !! :D


---------------
ma vie, mon oeuvre - HomePlayer
n°89788
djok_fb
C'était mieux avant!
Posté le 16-01-2002 à 07:52:22  profilanswer
 

c t la belle epoque...
y avait pas tout c petits jeunes ki ne peuvent se passer d'interface...

n°89799
darklord22
Nightwish rulezzzzzzzzzzzzz
Posté le 16-01-2002 à 09:29:11  profilanswer
 

benou a écrit a écrit :

 
 
y a pas le compilateur avec le JRE ...  




 
Et si avec le dernier JRE il y est  :fuck:
 
http://java.sun.com/j2se/1.3/jre/
 

Citation :


24Oct01 - Beginning October 17, 2001, it is permissable to redistribute the "javac" compiler with the Java 2 Runtime Environment (JRE). See the Sun Binary Code License and the JRE README for terms and conditions. Items that have been added to the section in the README entitled "Redistribution of Java 2 SDK files" are:  
 
bin/javac.exe   (Microsoft Windows)
bin/javac and bin/i386/native_threads/javac   (Linux and Solaris IA)
bin/javac and bin/sparc/native_threads/javac   (Solaris SPARC)
lib/tools.jar   (on all platforms)  
These files include the Java 2 SDK tools classes, including the classes for the "javac" compiler.  
Additionally, on Microsoft Windows platforms it is now permissible to redistribute the Java HotSpot Server VM (also known as "C2" ) with the Microsoft Windows version of the JRE. (C2 is already included in the JREs for Linux and the SolarisTM operating environment.) Items that have been added to the README section on "Redistribution of Java 2 SDK files" are:  
 
jre/bin/server/jvm.dll
jre/bin/server/Xusage.txt

 

[edtdd]--Message édité par darklord22--[/edtdd]


---------------
What is popular is not always right, what is right is not always popular :D
n°89803
darklord22
Nightwish rulezzzzzzzzzzzzz
Posté le 16-01-2002 à 09:34:44  profilanswer
 

benou a écrit a écrit :

 
 
nananan, le problème c'est la path, pas le classpath !  
 
quand tu fais l'installe de la jdk, java est executable directement mais javac non ...  




 
avec JRE 1.3.1_02 si  :fuck:


---------------
What is popular is not always right, what is right is not always popular :D
n°90043
Vinz416
Posté le 16-01-2002 à 21:20:34  profilanswer
 

merci tout le monde ca marche ! :D :bounce: :hello:

n°90124
darklord22
Nightwish rulezzzzzzzzzzzzz
Posté le 17-01-2002 à 08:46:43  profilanswer
 

Vinz416 a écrit a écrit :

merci tout le monde ca marche ! :D :bounce: :hello:  




 
 
cooooool  :benetton:


---------------
What is popular is not always right, what is right is not always popular :D
mood
Publicité
Posté le   profilanswer
 


Aller à :
Ajouter une réponse
  FORUM HardWare.fr
  Programmation

  comment installer java sous windows ?

 

Sujets relatifs
Php, Perl, Java, C#, ASP.Net ...Prog avec Visual Studio 6 d'appli pour Windows CE
[JAVA] helllp a la compilation[JAVA] est-il possible d'iconifier une frame (awt) ?
[JAVA] Gerer les evenements (souris) sur son propre composant[java ,linux] comment gérer un truc comme ça ?
[java] je cherche des exemples d'interfacesCombien de ports sous windows ??
[JAVA] Création d'une classe Border avec Swing[JAVA] Créer et appeler un Paquetage?
Plus de sujets relatifs à : comment installer java sous windows ?


Copyright © 1997-2022 Hardware.fr SARL (Signaler un contenu illicite / Données personnelles) / Groupe LDLC / Shop HFR