简体   繁体   English

未绑定的类路径变量java android eclipse

[英]Unbound class path variable java android eclipse

What does the meaning of Unbound Class Path variable on Eclipse? Eclipse上Unbound Class Path变量的含义是什么? I got the error and don't know how to fix it. 我收到错误,不知道如何修复它。

What does the meaning of Unbound Class Path variable on Eclipse? Eclipse上Unbound Class Path变量的含义是什么?

It's a warning message that says, a classpath variable is no longer valid. 这是一条警告消息,表示类路径变量不再有效。

I got the error and don't know how to fix it. 我收到错误,不知道如何修复它。

I'm sure you also get a description of which varible was unbound. 我相信你也会得到一个关于哪个varible未绑定的描述。

Goto Eclipe -> Preferences -> Java -> Build Path -> Classpath Variables 转到Eclipe - >首选项 - > Java - >构建路径 - >类路径变量

Check if the said variable/jar file is present and add/edit if required. 检查是否存在所述变量/ jar文件,并根据需要添加/编辑。

In one of the projects I just created, the M2_REPO classpath variable was not defined. 在我刚创建的其中一个项目中,未定义M2_REPO类路径变量。 Defining the M2_REPO (not M2_Repo, which is what I had) variable fixed the error. 定义M2_REPO(不是M2_Repo,这是我所拥有的)变量修复了错误。

- m - m

Cause 原因

Variable specified in .classpath not found. 找不到.classpath中指定的变量。

Resolution 解析度

Goto Eclipe -> Preferences -> Java -> Build Path -> Classpath Variables 转到Eclipe - >首选项 - > Java - >构建路径 - >类路径变量

Check if the specified variable is available. 检查指定的变量是否可用。

If not , Add it along with the expected value. 如果没有,请将其与预期值一起添加。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM