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

  • SEARCH
  • Home
  • 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 7421073
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T08:20:48+00:00 2026-05-29T08:20:48+00:00

My Ant script won’t compile code. It says it doesn’t find a C:\Program Files\Java\jdk1.6.0_25.

  • 0

My Ant script won’t compile code. It says it doesn’t find a “C:\Program Files\Java\jdk1.6.0_25”. Which is correct, it should be looking for “C:\Program Files\Java\jdk1.6.0_24”

However, I don’t know where it is getting the bad reference from. I seem to have 24 on Java_home and in all my Eclipse settings. Where can it be getting this other reference from? How can I fix it?

  • 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-05-29T08:20:48+00:00Added an answer on May 29, 2026 at 8:20 am

    Eclipse gets his JAVA_HOME for Ant from the Project settings > Java Build Path > Libraries > JRE System Library not from Windows %JAVA_HOME% environment variable.
    Normally it uses the default Eclipse JRE setting which should be C:\Program Files\Java\jdk1.6.0_24 in your case.

    Maybe some team member altered the project setting to C:\Program Files\Java\jdk1.6.0_25 and made a commit !?
    So you have to check the project settings also, because they overwrite the general Eclipse settings.

    Did you already run your antfile in Eclipse with debugmode via Run As Ant Build... and
    Main Tab > Arguments > -debug > Run to get more information ?
    Is there some fork=true involved in your script ?
    Also put some more diagnostic output in your antfile via :

    <echoproperties prefix="java"/>
    <echoproperties prefix="ant"/>
    

    to get the relevant settings logged.

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

Sidebar

Related Questions

I have an Ant script which turns my Java application into a nice Mac
I have an ant script that compile my program, build the jar and then
Is there a way to find what architecture an ant script is running on?
I have a Java project that I build using an Ant script. I am
In my ant script, which runs the end-to-end integration tests, I first start a
I want my ant script to execute the command java -cp libs/a.jar:libs/b.jar org.stack.class1 --package
I am using Ant Script in Jenkins to handle the deployment of my files.
I have an ANT script which will have a property whose value could be
I have an Ant script which runs tests then deploys my application to a
I am trying to write an ant script which builds our project and will

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.