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

  FORUM HardWare.fr
  Programmation
  Java

  [Java] petit probleme pour lancer un exe via java

 


 Mot :   Pseudo :  
 
Bas de page
Auteur Sujet :

[Java] petit probleme pour lancer un exe via java

n°141932
merry
Posté le 21-05-2002 à 21:11:31  profilanswer
 

voila, j'ai tout dis. Je ne connais pas de fonction permettant de
lancer un exe a partir d'une appli java.
un equivalent de system() du C.
Merci!

mood
Publicité
Posté le 21-05-2002 à 21:11:31  profilanswer
 

n°141933
darklord
You're welcome
Posté le 21-05-2002 à 21:12:39  profilanswer
 

Runtime.exec()
 
la javadoc c pas pour les chiens :D
 
 :hello:


---------------
Just because you feel good does not make you right
n°141936
merry
Posté le 21-05-2002 à 21:18:49  profilanswer
 

merci a toi darklord.

n°141938
darklord
You're welcome
Posté le 21-05-2002 à 21:21:52  profilanswer
 

you're welcome ;)


---------------
Just because you feel good does not make you right
n°141942
merry
Posté le 21-05-2002 à 21:25:51  profilanswer
 

bon, Runtime.exec() ne marche pas.
Enfin il est pas connu pas java2 1.3
t'es sur que ca marche?

n°141945
darklord
You're welcome
Posté le 21-05-2002 à 21:26:40  profilanswer
 

merry a écrit a écrit :

bon, Runtime.exec() ne marche pas.
Enfin il est pas connu pas java2 1.3
t'es sur que ca marche?  




 
sans blague que je suis sûr ... Tu as regardé la doc sur l'objet runtime au moins avant d'essayer au pif?  :heink:


---------------
Just because you feel good does not make you right
n°141947
darklord
You're welcome
Posté le 21-05-2002 à 21:28:02  profilanswer
 

Citation :


exec
public Process exec(String command)
             throws IOExceptionExecutes the specified string command in a separate process.  
The command argument is parsed into tokens and then executed as a command in a separate process. The token parsing is done by a StringTokenizer created by the call:  
 
 new StringTokenizer(command)
 with no further modifications of the character categories. This method has exactly the same effect as exec(command, null).
Parameters:
command - a specified system command.
Returns:
a Process object for managing the subprocess.
Throws:
SecurityException - if a security manager exists and its checkExec method doesn't allow creation of a subprocess.
IOException - if an I/O error occurs


 
http://java.sun.com/j2se/1.3/docs/ [...] ntime.html


---------------
Just because you feel good does not make you right
n°142562
merry
Posté le 22-05-2002 à 16:08:11  profilanswer
 

ok, ca marche.
merci et desolé pour le derangement.

n°143489
greg@frees​tarthu
Posté le 23-05-2002 à 17:50:09  profilanswer
 

:hello:  
tres fort :)


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

  [Java] petit probleme pour lancer un exe via java

 

Sujets relatifs
[VC++] petit pb avec une CListCtrl[JAVA] Repaint ne marche pas :(((( [Resolu]
pb easyphp : probleme de port...Encore un probleme de dates en VB
[SQL] Requête et date (Problème résolu merci...)problème avec applet
[ CMD sous XP ] petit soucis avec Start[C] probleme structure et pointeur
[java]probleme avec les icone 
Plus de sujets relatifs à : [Java] petit probleme pour lancer un exe via java


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