[JAVA] Lancer un script shell depuis Java ... Sauvegarder Signaler jerome - Dernière réponse le 18 oct. 2010 2 réponses Bonjour, Comment faire pour lancer un script shell (harris.sh) depuis un programme Java ? Merci de votre aideConfiguration: Java SDK1.4.2 Linux Afficher la suite 2 réponses Trié par votes Votes Date Date décroissante Réponse 1 / 2 ... Signaler philtrain Bonsoir, Et comme ceci: try { Process proc = Runtime.getRuntime().exec("harris.sh"); } catch(IOException e) { } ? çà marche? ... Signaler bilelm svp c urgent je veu savoir comment lancer un script shell avec des parametres? et merci ... Signaler jernux non ta méthode ne fonctionne pas,malheuresement . Réponse 2 / 2 ... Signaler kij_82 Contributeur system("blabla.sh"); ? ca marche pas ca ? ... Signaler jerome Non ca marche pas, il me renvoie l'erreur suivante : ActionOK.java:18: cannot resolve symbol symbol : method System (java.lang.String) location: class ActionOK System("harris.sh"); ^ 1 error Discussions similaires Jeux pour itel 5330 yewou application JAVA sur telephone portable !!!! julio application java sur telephone mobile :-) mathieu7530 Java : Jeux gratuits à télécharger ! undertaker3 Téléchargement de la Bible en français Grande sÅ"ur Sujet Précédent Sujet Suivant
Réponse 1 / 2 ... Signaler philtrain Bonsoir, Et comme ceci: try { Process proc = Runtime.getRuntime().exec("harris.sh"); } catch(IOException e) { } ? çà marche? ... Signaler bilelm svp c urgent je veu savoir comment lancer un script shell avec des parametres? et merci ... Signaler jernux non ta méthode ne fonctionne pas,malheuresement .
... Signaler bilelm svp c urgent je veu savoir comment lancer un script shell avec des parametres? et merci
Réponse 2 / 2 ... Signaler kij_82 Contributeur system("blabla.sh"); ? ca marche pas ca ? ... Signaler jerome Non ca marche pas, il me renvoie l'erreur suivante : ActionOK.java:18: cannot resolve symbol symbol : method System (java.lang.String) location: class ActionOK System("harris.sh"); ^ 1 error
... Signaler jerome Non ca marche pas, il me renvoie l'erreur suivante : ActionOK.java:18: cannot resolve symbol symbol : method System (java.lang.String) location: class ActionOK System("harris.sh"); ^ 1 error