JAVA_lancer une application windows
john_matrix
Messages postés
443
Statut
Membre
-
choubaka Messages postés 39986 Date d'inscription Statut Modérateur Dernière intervention -
choubaka Messages postés 39986 Date d'inscription Statut Modérateur Dernière intervention -
bonjour
comment lancer une application a partir d'un programma java c'est a dire comment ouvrir word par exemple dans un programm?
comment lancer une application a partir d'un programma java c'est a dire comment ouvrir word par exemple dans un programm?
A voir également:
- JAVA_lancer une application windows
- Desinstaller application windows - Guide
- Windows application démarrage - Guide
- Clé windows 8 - Guide
- Montage video gratuit windows - Guide
- Windows ne démarre pas - Guide
1 réponse
salut
la commande pour lancer un programme extèrieure à java est
Runtime r = Runtime.getRuntime();
r.exec(String command);
command pouvant être par exemple "C:/Microsoft Office/word.exe"
il existe plusieurs méthodes "exec()" avec différents arguments, à voir dans la javadoc
http://java.sun.com/j2se/1.3/docs/api/java/lang/Runtime.html#getRuntime()
la commande pour lancer un programme extèrieure à java est
Runtime r = Runtime.getRuntime();
r.exec(String command);
command pouvant être par exemple "C:/Microsoft Office/word.exe"
il existe plusieurs méthodes "exec()" avec différents arguments, à voir dans la javadoc
http://java.sun.com/j2se/1.3/docs/api/java/lang/Runtime.html#getRuntime()