Win a copy of Micro Frontends in Action this week in the Server-Side JavaScript and NodeJS forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

NetComponents.jar used with ANT

Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
I am trying to use NetComponents.jar in an ant script on Windows 2000. That, along with optional.jar, should allow me to use the <ftp> task def. Unfortunately, ANT complains that it does not know what to do with the <ftp> def.
I have made sure that NetComponents.jar and optional.jar are in my ANT lib directory.
I have even tried to explicity put these jars in my CLASSPATH.
I am using jdk1.3.1_02 and I am using ANT 1.5.1, but I am not having much luck. A co-worker has almost the same setup and he has no problems (he is using jdk1.3.1_04).
Anyone have similar issues ?
Mike Gray
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I found the answer to my problem.
I have BEA Weblogic installed locally. Because of that, I automatically have Ant installed.
I wanted to use Ant 1.5.1, which I have installed seperately on my PC. The problem is that in my Path variable, I have %WL_HOME%\bin before %ANT_HOME%\bin. Because of this, Java finds the first insatnce of Ant inside the Weblogic variable. That is a different instance of Ant so Java cannot find the NetCOmponents.jar file.
All I had to do to fix this was to change the order of my Path variables so my 1.5.1 version of ANt is picked up first. (ie. %ANT_HOME%\bin;%WL_HOME%\bin).
Remember, Java is 90% configuration and 20% coding !!!
    Bookmark Topic Watch Topic
  • New Topic