JAVA_lancer une application windows
Fermé
john_matrix
Messages postés
440
Date d'inscription
dimanche 4 septembre 2005
Statut
Membre
Dernière intervention
19 avril 2008
-
17 avril 2006 à 16:35
choubaka Messages postés 39153 Date d'inscription jeudi 4 avril 2002 Statut Modérateur Dernière intervention 24 mars 2023 - 18 avril 2006 à 07:45
choubaka Messages postés 39153 Date d'inscription jeudi 4 avril 2002 Statut Modérateur Dernière intervention 24 mars 2023 - 18 avril 2006 à 07:45
A voir également:
- JAVA_lancer une application windows
- Windows 10 gratuit - Guide
- Windows 10 iso - Guide
- Retourner ecran windows - Guide
- Windows 11 22h2 - Guide
- Clé windows 10 - Guide
1 réponse
choubaka
Messages postés
39153
Date d'inscription
jeudi 4 avril 2002
Statut
Modérateur
Dernière intervention
24 mars 2023
2 099
18 avril 2006 à 07:45
18 avril 2006 à 07:45
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()