Solved

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

Posted on 2004-09-27
7
606 Views
Last Modified: 2008-01-09
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?
0
Comment
Question by:schiang1
  • 2
  • 2
7 Comments
 
LVL 4

Expert Comment

by:aratani
ID: 12162812
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?
0
 

Author Comment

by:schiang1
ID: 12163756
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"?
0
 
LVL 4

Accepted Solution

by:
aratani earned 250 total points
ID: 12163911
That would be a security violation if you can usse your rights to run files that shouldn't be running. Even though ant runs with your id, it shouldn't be able to run another file that has lower permissions. The permissions are per file, not per user. It doesn't care which user started the program, but what the permissions of the files are that it accesses.

So, did you get the problem solved if you put the right permissions on the file?

Thanks

AJ
0
 

Author Comment

by:schiang1
ID: 12164165
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?
0
 
LVL 35

Assisted Solution

by:girionis
girionis earned 250 total points
ID: 12168483
Have a look here: http://www.jguru.com/forums/view.jsp?EID=1181541 it might help.
0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

Here we come across an interesting topic of coding guidelines while designing automation test scripts. The scope of this article will not be limited to QTP but to an overall extent of using VB Scripting for automation projects. Introduction Now…
Although it can be difficult to imagine, someday your child will have a career of his or her own. He or she will likely start a family, buy a home and start having their own children. So, while being a kid is still extremely important, it’s also …
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now