Bonjour j ai un probleme avec GMT , en effet lorsque je lance la commande:
il me cree le fichier gmt_manche_02.grd mais si le l execute via une classe java j'obtiens rien
Code shell : Sélectionner tout - Visualiser dans une fenêtre à part xyz2grd manche02_1630.xyz -Ggmt_manche_02.grd -I2m -R-7/2/47.5/51.5
voici la classe java
quelque peut me venir en aide svp ?
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 public class Test { public static void main(String[] args) throws IOException, InterruptedException { Runtime runtime = Runtime.getRuntime(); System.out.println("Début du programme"); try { Process p=runtime.exec(new String[]{"/bin/sh", "-c", "xyz2grd manche02_1630.xyz -Ggmt_manche_02.grd -I2m -R-7/2/47.5/51.5"}); } catch (IOException e) { e.printStackTrace(); } System.out.println("Fin du programme"); } }
Partager