Click here to Skip to main content
15,887,328 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
This is the error I got when I run the eclipse program using ant. basically it is prompting when project name is wrong. but in my case both names are same and correct. please can anyone know any reasons for this?

Java
Variable references non-existent resource : ${workspace_loc:/BankDemo/build.xml}
Posted

1 solution

You are using ant to drive the build process with Eclipse. The main file that directs everything with ant is build.xml. If that file is missing or misidentified, the build can not happen. According to your Eclipse environment description, it expects the build.xml file to be at the location specified.

Look at the definition for workspace_loc to determine where the IDE is looking for the build file. To do this, in the Package Explorer, right click the Package you are trying to compile, select Build Path -> Configure Build Path. Click on Resource/Linked Resources and look at the Path Variables tab. WORKSPACE_LOC should be there, and replace that in the path above. I am not sure if this variable is case sensitive, but I notice you have it defined as lowercase in your question. It might need to be uppercase.
 
Share this answer
 
Comments
mali_angel 18-Jul-13 3:25am    
didn't work for me :(
H.Brydon 18-Jul-13 3:29am    
What didn't work? What is the value of WORKSPACE_LOC? Does the build.xml file exist at the address you specified?
mali_angel 18-Jul-13 3:35am    
This error occurred after fix what u said before.

Errors occurred during the build.
Errors running builder 'Integrated External Tool Builder' on project 'BankDemo'.
The file does not exist for the external tool named Builder.
The file does not exist for the external tool named Builder.
H.Brydon 18-Jul-13 3:38am    
What is the value of WORKSPACE_LOC?
mali_angel 18-Jul-13 5:34am    
Can you tell me step by step to set the variable and its values? i do not know the value but i set select Build Path -> Configure Build Path process.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900