Errors in running Ant scripts

Posted on 2009-07-14
Last Modified: 2013-11-23

I am trying to run  a ant script through RAD j2ee project. It ran fine from one computer RAD j2ee project. It is not running on other computer with similar RAD project set up, references etc by Complaining like cannot found.

In the classpaath i see that jdbcresultset  jar though. No compilation errors as such in work space as well.

Not sure why Ant script does not run and abruptly stops in middle and throws error message saying cannot find cannot found.

Any ideas, sample code, resources highly appreciated. Thanks in advance
Question by:gudii9
  • 4
  • 2
  • 2
  • +1
LVL 92

Expert Comment

ID: 24856760
is it in the classpath specified in the ant build file?
LVL 86

Expert Comment

ID: 24857079
Best post your build.xml

Assisted Solution

jwenting earned 100 total points
ID: 24857530
That error ALWAYS is a classpath error (unless the class name supplied is wrong of course).

Just because you set the system classpath to something (there's no need to ever do that) doesn't mean it's going to be used by an application.
Any properly configured Java application sets its own classpath to include what it needs and only what it needs.
LVL 86

Expert Comment

ID: 24857584
If you're still having difficulties, run the following and post the file ant.log here:
ant -d &>ant.log

Open in new window

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!


Author Comment

ID: 24871142
On the second machine it complains
    [javac] file com\ibm\ws\ffdc\FFDCSelfIntrospectable.class not found like

    [javac] C:\xyz_WorkSpace\060909_1\ cannot access

    [javac] file com\ibm\ws\ffdc\FFDCSelfIntrospectable.class not found

    [javac] if (resultSet instanceof WSJdbcResultSet) {

    [javac] ^

    [javac] Note: C:\xyz_WorkSpace\ uses or overrides a deprecated API.

    [javac] Note: Recompile with -Xlint:deprecation for details.

    [javac] 1 error



 but on first machinee it works fine. I want to know under which jar does
 FFDCSelfIntrospectable.class resides in so that i can copy paste same jar from first working machine to second  not working machine. please advise
LVL 86

Accepted Solution

CEHJ earned 200 total points
ID: 24871570
That's a Webshpere class. If you search on the classname under your Websphere tree with this app, you should find the jar:
LVL 92

Assisted Solution

objects earned 200 total points
ID: 24875274
check the build path used on the good machine and compare the directory contents with whats on the bad nachine. that should show you whats different

running ant in verbose mode may also help

Author Closing Comment

ID: 31603609
Thank you very much
LVL 86

Expert Comment

ID: 24922602

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
topping1 challenge 7 51
topping3 challenge 14 50
compre toata in where clue oracle 4 42
Image decoding from Camera 3 45
Windows Script Host (WSH) has been part of Windows since Windows NT4. Windows Script Host provides architecture for building dynamic scripts that consist of a core object model, scripting hosts, and scripting engines. The key components of Window…
If you haven’t already, I encourage you to read the first article ( in my series to gain a basic foundation of R and R Studio.  You will also find the …
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.

757 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

17 Experts available now in Live!

Get 1:1 Help Now