Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
Help coderanch get a
new server
by contributing to the fundraiser
  • 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Ant beginner, having problems

 
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I�m currently doing the J2EE tutorial off of Java Sun, and downloaded the Sun Application Server 9.0 which includes the ant download.

I�m having trouble deploying my applications from the command line using Ant though. I�ve set the path variable as per instructions as-install/lib/ant/bin and modified the relevant paths in the bp-project/build.properties file.

When I build the application using the ant command, it builds successfully despite initially stating that its �unable to find tools.jar expecting to find it in jre_1.6.03\lib\tools.jar�.

When I try to deploy it fails completely. It states again it unable to find the tools.jar and that the build .xml does not exist

I am currently able to deploy applications using NetBeans, but I want to get Ant working.

Anyone able to point me in the right direction please. Apologies if I�m doing something wrong that�s obvious.
 
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Couple of things to check:

Is JAVA_HOME set?
Can you post the output?
Ant also has a verbose option, try to see what info that provides.
 
If you were a tree, what sort of tree would you be? This tiny ad is a poop beast.
We need your help - Coderanch server fundraiser
https://coderanch.com/t/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic