Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8275933
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T08:13:36+00:00 2026-06-08T08:13:36+00:00

Im doing an ant build, the command i use is ant clean compile war

  • 0

Im doing an ant build, the command i use is

ant clean compile war

and apache ant is included in the path too,

c:\apache-ant-1.8.2\bin;

This is my PATH variable:

PATH=C:\oraclexe\app\oracle\product\10.2.0\server\bin;C:\WINDOWS\system32;C:\WIN
DOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\TortoiseSVN\bin;C:\Program Files\
System Center Operations Manager 2007\;C:\Java\jdk1.6.0_26\bin;C:\apache-ant-1.8
.1\bin

Now i get this error message,

'"java.exe"' is not recognized as an internal or external command,
operable program or batch file.
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T08:13:39+00:00Added an answer on June 8, 2026 at 8:13 am

    c:\apache-ant-1.8.2\bin needs to be in your system PATH so that the shell can find it. Your classpath is irrelevant for this purpose.

    You can add it at the prompt:

    set PATH=%PATH%;c:\apache-ant-1.8.2\bin
    

    And you should be able to run ant.

    But you want to persist this change so you don’t need to type this every time. To do so you’ll need to add it to the list of system or user variables. Follow the directions from here:

    1. Right-click My Computer, and then click Properties.
    2. Click the Advanced tab.
    3. Click Environment variables.
    4. Click one the following options, for either a user or a system variable:
      • Click New to add a new variable name and value.
      • Click an existing variable, and then click Edit to change its name or value.
      • Click an existing variable, and then click Delete to remove it.

    In step 4, add ;c:\apache-ant-1.8.2\bin to the end of the value, being careful to note the semicolon which seperates this new entry from the preceding PATH elements.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to build my Android project with Ant. Whenever I use Eclipse
I'm trying to use jstestdriver to generate some unit tests in my ant build
I have a Eclipse-Java-Project with an ANT-build-file. This build file exports a jar of
I am having a java project with a ant build file, using this ant
If I pass a variable to ant by doing ant -Dsomething=blah How can I
I've been doing all my builds using ant on the command line (Ubuntu 10.04).
I have some automatically generated Ant build scripts that I need to use to
Hello fellow stackoverflowers, Most Ant build files I've seen online involve a clean target
I'm inching my way to doing an Ant build on my Eclipse sources. The
The NetBeans command to run an Ant build for a project is F11 .

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.