I got an error in Eclipse. What does this error message means:
The type iglu.ir.TermVector cannot be resolved. It is indirectly referenced from required .class files
I got an error in Eclipse. What does this error message means:
The type iglu.ir.TermVector cannot be resolved. It is indirectly referenced from required .class files
I got this exception because eclipse was working in a different version of jdk, just changed to the correct, clean and build and worked!
This is as likely a matter of Eclipse's getting confused as it is an actual error. I ignored the error and ran the web service whose endpointInterface it complained about, and it ran fine, except for having to deal with the dialog every time I wanted to run it. Just another opaque error that tells me nothing.
It sounds like this has been a known issue (Bug 67414)that was resolved in 3.0 ... someone has commented that it's occurring for them in 3.4 as well.
In the mean time, the work around is to remove the JRE System Library from the project and then add it back again.
Go to properties of project with the build error (right click > Properties)
View the "Libraries" tab in the "Build Path" section
Find the "JRE System Library" in the list (if this is missing then this error message is not an eclipse bug but a mis-configured project)
Remove the "JRE System Library"
Hit "Add Library ...", Select "JRE System Library" and add the appropriate JRE for the project (eg. 'Workspace default JRE')
Hit "Finish" in the library selection and "OK" in the project properties and then wait for the re-build of the project
Hopefully the error will be resolved ...
In my case ,I created a project and made its
minSdkVersion=9
andtargetSdkVersion=17
. I used automatically generatedlibs/android-support-v4.jar
. I also had to make use ofActionBarActivity
usingandroid-support-v7-appcomapt.jar
. So I just copied theandroid-support-v7-appcompat.jar
file fromandroid-sdk/extras/andrid/support/v7/appcompat/libs
folder and pasted it to my projectlibs
folder. And this caused the above error. So basically,I needed to putandroid-support-v4.jar
file fromandroid-sdk/extras/andrid/support/v7/appcompat/libs
as well to my projectlibs
folder. As per my knowledge thev7.jar
file had dependencies onv4.jar
file. So ,it needed it ownv4.jar
file,instead of my project,automatically createdv4.jar
file.This error occurs when the classes in the jar file does not follow the same structure as of the folder structure of the jar..
e.g. if you class file has package com.test.exam and the classes.jar created out of this class file has structure test.exam... error will be thrown. You need to correct the package structure of your classes.jar and then include it in ecplipse build path...
This happened to me because of transitive dependencies in my jars