变量引用不存在的资源错误 [英] Variable references non-existent resource error

查看:200
本文介绍了变量引用不存在的资源错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是我使用ant运行eclipse程序时遇到的错误。基本上它是在项目名称错误时提示。但就我而言,两个名字都是一样的,也是正确的。请知道任何理由吗?



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?

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

推荐答案

{workspace_loc:/BankDemo/build.xml}
{workspace_loc:/BankDemo/build.xml}


您正在使用ant来使用Eclipse驱动构建过程。使用ant指导所有内容的主文件是build.xml。如果该文件丢失或错误标识,则无法进行构建。根据您的Eclipse环境描述,它期望build.xml文件位于指定的位置。



查看workspace_loc的定义以确定IDE的位置用于构建文件。为此,在Package Explorer中,右键单击要编译的Package,选择Build Path - >配置构建路径。单击Resource / Linked Resources并查看Path Variables选项卡。 WORKSPACE_LOC应该在那里,并在上面的路径中替换它。我不确定这个变量是否区分大小写,但我注意到你在问题中将它定义为小写。它可能需要是大写的。
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.


这篇关于变量引用不存在的资源错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆