je lance un batch pour executer la commande suivante:
le build.xml :
Code : Sélectionner tout - Visualiser dans une fenêtre à part ant compress >> batch_compress_${JMY}.log
et j ai l'exception IO suivante:
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3 <target name="compress" description="Compress"> <java classname="com.newbatch.compress.Zippe" lasspathref="cp" fork="true"> <jvmarg value="-Xmx1024m" />
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
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50 [java] /exec/applis//compress/build.xml:20: java.io.IOException: java.io.IOException: /exec/products/jrockit-R26.4.0-jdk1.5.0_06/jre/bin/java: cannot execute [java] at org.apache.tools.ant.taskdefs.Java.fork(Java.java:753) [java] at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:170) [java] at org.apache.tools.ant.taskdefs.Java.execute(Java.java:83) [java] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275) [java] at org.apache.tools.ant.Task.perform(Task.java:364) [java] at org.apache.tools.ant.Target.execute(Target.java:341) [java] at org.apache.tools.ant.Target.performTasks(Target.java:369) [java] at org.apache.tools.ant.Project.executeTarget(Project.java:1214) [java] at org.apache.tools.ant.Project.executeTargets(Project.java:1062) [java] at org.apache.tools.ant.Main.runBuild(Main.java:673) [java] at org.apache.tools.ant.Main.startAnt(Main.java:188) [java] at org.apache.tools.ant.launch.Launcher.run(Launcher.java:196) [java] at org.apache.tools.ant.launch.Launcher.main(Launcher.java:55) [java] Caused by: java.io.IOException: java.io.IOException: /exec/products/jrockit-R26.4.0-jdk1.5. 0_06/jre/bin/java: cannot execute [java] at java.lang.UNIXProcess.<init>(UNIXProcess.java:148) [java] at java.lang.ProcessImpl.start(ProcessImpl.java:65) [java] at java.lang.ProcessBuilder.start(ProcessBuilder.java:451) [java] at java.lang.Runtime.exec(Runtime.java:591) [java] at jrockit.reflect.VirtualNativeMethodInvoker.invoke(Ljava.lang.Object;[Ljava.lang.Object;)Ljava.lang.Object;(Unknown Source) [java] at java.lang.reflect.Method.invoke(Ljava.lang.Object;[Ljava.lang.Object;I)Ljava.lang.Ob ject;(Unknown Source) [java] at org.apache.tools.ant.taskdefs.Execute$Java13CommandLauncher.exec(Execute.java:831) [java] at org.apache.tools.ant.taskdefs.Execute.launch(Execute.java:436) [java] at org.apache.tools.ant.taskdefs.Execute.execute(Execute.java:450) [java] at org.apache.tools.ant.taskdefs.Java.fork(Java.java:746) [java] ... 12 more [java] --- Nested Exception --- [java] java.io.IOException: java.io.IOException: /exec/products/jrockit-R26.4.0-jdk1.5.0_06/jre/bin/java: cannot execute [java] at java.lang.UNIXProcess.<init>(UNIXProcess.java:148) [java] at java.lang.ProcessImpl.start(ProcessImpl.java:65) [java] at java.lang.ProcessBuilder.start(ProcessBuilder.java:451) [java] at java.lang.Runtime.exec(Runtime.java:591) [java] at jrockit.reflect.VirtualNativeMethodInvoker.invoke(Ljava.lang.Object;[Ljava.lang.Obje ct;)Ljava.lang.Object;(Unknown Source) [java] at java.lang.reflect.Method.invoke(Ljava.lang.Object;[Ljava.lang.Object;I)Ljava.lang.Ob ject;(Unknown Source) [java] at org.apache.tools.ant.taskdefs.Execute$Java13CommandLauncher.exec(Execute.java:831) [java] at org.apache.tools.ant.taskdefs.Execute.launch(Execute.java:436) [java] at org.apache.tools.ant.taskdefs.Execute.execute(Execute.java:450) [java] at org.apache.tools.ant.taskdefs.Java.fork(Java.java:746) [java] at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:170) [java] at org.apache.tools.ant.taskdefs.Java.execute(Java.java:83) [java] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275) [java] at org.apache.tools.ant.Task.perform(Task.java:364) [java] at org.apache.tools.ant.Target.execute(Target.java:341) [java] at org.apache.tools.ant.Target.performTasks(Target.java:369) [java] at org.apache.tools.ant.Project.executeTarget(Project.java:1214) [java] at org.apache.tools.ant.Project.executeTargets(Project.java:1062) [java] at org.apache.tools.ant.Main.runBuild(Main.java:673) [java] at org.apache.tools.ant.Main.startAnt(Main.java:188) [java] at org.apache.tools.ant.launch.Launcher.run(Launcher.java:196) [java] at org.apache.tools.ant.launch.Launcher.main(Launcher.java:55)
Partager