This
    <java jvm="/-/${JAVA_PACK}/OBJECT/JAVA">
    </java> 
works.  Correct about /bin/java not working.

I added
    <echo>"java.home '${java.home}'"</echo>
    <echo>"os.name '${os.name}'"</echo>
and got
     [echo] "java.home '/-/JAVA142/DIR/JRE'"      
     [echo] "os.name 'MCP/AS'"                    

This gave me the idea to copy OBJECT/JAVA as /-/JAVA142/DIR/JRE/BIN/JAVA
and remove the jvm= line.  So I tried it.  It still doesn't work.  But,
the jvm= solution works.

We have customized the JVM for our mainframe, I'll talk with the authors
to see if they have any ideas.

Here's what happens without the jvm= workaround:

-     % #1: (DONP)LIST/STDERR ON SYSTEM (Records: 1-31 of 31)

 

BUILD FAILED

 

/-/JAVATEST2/DIR/DONP/SPEC/build.xml:395: java.io.IOException: java: not
found  
--- Nested Exception ---

java.io.IOException: java: not found

        at java.lang.UNIXProcess.forkAndExec(Unknown Source)

        at java.lang.UNIXProcess.<init>(UNIXProcess.java:52)

        at java.lang.Runtime.execInternal(Unknown Source)

        at java.lang.Runtime.exec(Runtime.java:566)

        at sun.reflect.NativeMethodAccessorImpl.invoke0(Unknown Source)

        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)

        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)

        at java.lang.reflect.Method.invoke(Method.java:324)

        at
org.apache.tools.ant.taskdefs.Execute$Java13CommandLauncher.exec(Exec
ute.java:509)

        at
org.apache.tools.ant.taskdefs.Execute.execute(Execute.java:329)      
        at org.apache.tools.ant.taskdefs.Java.run(Java.java:292)

        at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:112)

        at org.apache.tools.ant.taskdefs.Java.execute(Java.java:87)

        at org.apache.tools.ant.Target.execute(Target.java:153)

        at org.apache.tools.ant.Project.runTarget(Project.java:898)

        at org.apache.tools.ant.Project.executeTarget(Project.java:536)

        at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:213)

        at
org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:103)
 

        at org.apache.tools.ant.Target.execute(Target.java:153)

        at org.apache.tools.ant.Project.runTarget(Project.java:898)

        at org.apache.tools.ant.Project.executeTarget(Project.java:536)

        at org.apache.tools.ant.Project.executeTargets(Project.java:510)

        at org.apache.tools.ant.Main.runBuild(Main.java:421)

        at org.apache.tools.ant.Main.main(Main.java:149)

 

----- End of (DONP)LIST/STDERR ON SYSTEM -----

 


Don Payette

>THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE
PROPRIETARY MATERIAL and is thus for use only by the intended recipient.
If you received this in error, please contact the sender and delete the
e-mail and its attachments from all computers.

-----Original Message-----
From: Stefan Bodewig [mailto:[EMAIL PROTECTED] 
Sent: Friday, March 11, 2005 1:58 AM
To: [email protected]
Subject: Re: IllegalAccessException

On Thu, 10 Mar 2005, Matt Benson <[EMAIL PROTECTED]> wrote:

> You might be able to get by using "${java.home}/bin/java" .
> Otherwise, you could use the script task to set a property to the
> value returned from org.apache.tools.ant.util.JavaEnvUtils
> .getJreExecutable("java").

If that worked, then <java> should work without the jvm attribute in
the first place since this is exactly what <java> does by default.

Don, what is the value you provide to the jvm attribute when it works
for you?  And what is the value of the java.home property (just
<echo>${java.home}</echo> in an Ant build file)?

We may need to add some special cases for this OS.

Oh, what is the value of the os.name property?

Stefan

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to