Link to home
Start Free TrialLog in
Avatar of schiang1
schiang1

asked on

build.xml: Execute failed: java.io.IOException: idl2java: not found

I'm trying with:

<target name="myidl2java" depends="prepare_idl">
    <apply executable="idl2java" dir="/opt/vbroker/5.2.1/bin" failonerror="true" parallel="true">
         <arg line="-DJAVA -I${inc.idl} -root_dir ${idljava.home}"/>
         <fileset dir="${my.idl}">
                    <patternset>
                        <exclude name="**/*.pj"/>
                        <exclude name="**/makefile"/>
                    </patternset>
                </fileset>
    </apply>
</target>  
   
but when I execute ant the following error is shown:

Execute failed: java.io.IOException: idl2java: not found

Does someone know how to solve the problem?
Avatar of aratani
aratani

It doesn't find the file idl2java. Maybe it is not the directory /opt/vbroker/5.2.1/bin

Are you sure the file in that directory? Also, where is this being built? In linux, or in windows?
Avatar of schiang1

ASKER

It is in AIX.  The file idl2java is there and I can run idl2java as command.  The id that I used to run ant has x access to visibroker and ant.  The file idl2java's file mode is -rwxr-x---.  Once I changed its mode to -rwxr-x--x, then ant works.  Why can't ant propagate my id's access right to its executable "idl2java"?
ASKER CERTIFIED SOLUTION
Avatar of aratani
aratani

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
If the file mode of idl2java gets changed to -rwxr-x--x, then the ant problem went away.  But this does not solve my problem because the system administrator refuses to let the public has x access to the software for security reason.  My id has access right to both ant and idl2java and I can run idl2java on command-line.  Whay cannot I execute idl2java through ant?  Does some one know the way to let ant be able to execute idl2java without forcing the system administrator to grant x access to the public?
SOLUTION
Avatar of girionis
girionis
Flag of Greece image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial