0 Replies Latest reply on Oct 3, 2008 7:46 AM by 843844

    Getting Error while using CallTarget class

      I am getting following error while using the CallTarget.

      "Exception in thread "main" java.lang.NullPointerException
      at org.apache.tools.ant.taskdefs.Ant.init(Ant.java:147)
      at org.apache.tools.ant.taskdefs.CallTarget.init(CallTarget.java:85)
      at org.apache.tools.ant.taskdefs.CallTarget.setTarget(CallTarget.java:150
      at AntCallTarget.main(AntCallTarget.java:7)"

      Can anyone please help me solve this problem.
      The code where i am getting this error is

                CallTarget antCall = new CallTarget();