简体   繁体   中英

Unbound class path variable java android eclipse

What does the meaning of Unbound Class Path variable on Eclipse? I got the error and don't know how to fix it.

What does the meaning of Unbound Class Path variable on Eclipse?

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.

Goto Eclipe -> Preferences -> Java -> Build Path -> Classpath Variables

Check if the said variable/jar file is present and add/edit if required.

In one of the projects I just created, the M2_REPO classpath variable was not defined. Defining the M2_REPO (not M2_Repo, which is what I had) variable fixed the error.

- m

Cause

Variable specified in .classpath not found.

Resolution

Goto Eclipe -> Preferences -> Java -> Build Path -> Classpath Variables

Check if the specified variable is available.

If not , Add it along with the expected value.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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