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 8429875
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T05:27:26+00:00 2026-06-10T05:27:26+00:00

I have downloaded both Java jdk1.7.0_06 and Java jre7. and i added the following

  • 0

I have downloaded both Java jdk1.7.0_06 and Java jre7. and i added the following system variable JAVA_HOME C:\Program Files\Java\jdk1.7.0_06\bin to my windows 7. But when I type the following in the CMD command line on my windows 7 C:\activiti-5.10\activiti-5.10\setup>ant demo.start to run a demo application I got the following error in the command line ‘

“java.exe”‘ is not recognized as an internal or external command, operable program or batch file

So does anyone know how i can solve this problem ?
BR

  • 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-10T05:27:27+00:00Added an answer on June 10, 2026 at 5:27 am

    If you look at the "ant.bat" file, you will see that it looks for the "java" command in the following way:

    1. If the %JAVACMD% environment variable is set, then it uses that.
    2. Otherwise, if the %JAVA_HOME% environment variable is set, it tries to use %JAVA_HOME%\bin\java.exe
    3. Otherwise, it tries to use java.exe; i.e. it will look on your %PATH%.

    In your case, you have %JAVA_HOME% set … but set to the Java installation’s "bin" directory, not to the root of the installation. So the Ant.bat script looks in the wrong place for java.exe.

    Just set %JAVA_HOME% correctly, and it should work.

    JAVA_HOME C:\Program Files\Java\jdk1.7.0_06
    

    As you can see from the above, you do not need to have the Java "bin" directory on your %PATH% for Ant to work, but it is a good idea to set it anyway. That way you can run the Java commands simply from the command line.

    The setting of %CLASSPATH% is not relevant to this problem. Indeed, unless the build.xml file is broken, Ant will ignore your %CLASSPATH% environment variable.

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

Sidebar

Related Questions

I have two linux boxes. Both Fedora 11 x64. On one, I downloaded the
I have downloaded a Java 3d-1_5_1-macosx.zip. I am trying unzip the file. The file
I have downloaded ffmpeg lib file and complied it for armv7. I added ffmpeg
I have downloaded both samples for the Facebook Developer Kit from Codeplex and Facebook.NET
I have both Java JRE and Java JDK on a FreeBSD 7.2 box (running
We have a Scala project with few source files (in Scala and Java) and
I have recently downloaded both the 2.3 and 3.0 SDK for Android using Eclipse.
I have downloaded Eclipse Helios for Java EE on my Mac. Now I want
have downloaded page by webbrowser and need to get mail address. But it is
I have downloaded the two releases of python 2.6.8 from here http://www.python.org/getit/releases/2.6.8/ and I

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.