[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [imp-dev] Eclipse org.eclipse.core.runtime issue
|
I have run the same project on my eclipse and it gives me error.
"The type org.eclipse.core.runtime.IAdaptable cannot be resolved. It is indirectly referenced from required .class files"
I have traced the error and error is occuring because there is no IAdaptable class file in org.eclipse.core.runtime jar. Now how can i get correct org.eclipse.core.runtime jar file which contains IAdaptable class.
Regards
Lehmia kiran
On Mon, Feb 22, 2010 at 9:00 PM, Robert M. Fuhrer
<rfuhrer@xxxxxxxxxxxxxx> wrote:
[N.B.: As a general rule, I don't use imports of the form "foo.*", but instead import only the classes I actually use, unless the number of imports gets past 20 or so (which is a configurable option in the JDT).]
I haven't seen this problem ("indirectly referenced from required .class files") with this particular class.
FWIW, as a very quick sanity check, in Eclipse 3.5, I created a plugin project with the following dependencies:
- org.eclipse.core.runtime
- org.eclipse.core.resources
- org.eclipse.jdt.core
I then added the following method to its Activator class. I show the imports below, which essentially match what you described.
import org.eclipse.core.resources.IProject;
import org.eclipse.core.resources.ResourcesPlugin;
import org.eclipse.core.runtime.*;
import org.eclipse.jdt.core.IJavaProject;
import org.eclipse.jdt.core.JavaCore;
public class Activator extends Plugin {
public void foo() {
IProject proj= ResourcesPlugin.getWorkspace().getRoot().getProjects()[0];
IJavaProject javaProj= JavaCore.create(proj);
}
I get no compilation/build errors with this code.
Are you sure the problem isn't caused by some other code in the given class?
On Feb 22, 2010, at 12:12 AM, lehmia kiran wrote:
Its eclipse 3.5 (galilieo) and i have included this jar but probelm persists.
On Mon, Feb 22, 2010 at 7:28 AM, Jin Mingjian
<jin.phd@xxxxxxxxx> wrote:
which version of eclipse you're targeting with? not include the "org.eclipse.core.jobs" plugin?
2010/2/21 lehmia kiran
<lehmia@xxxxxxxxx>
IJavaProject javaProject = JavaCore.create(project);
I have imported following plugins
import org.eclipse.core.resources.IProject;
import org.eclipse.core.runtime.*;
but its giving me error
"The type org.eclipse.core.runtime.jobs.ISchedulingRule cannot be resolved. It is indirectly referenced from required .class files"
how to solve this problem as i have imported org.eclipse.core.runtime.*; but still its giving me error.Any help??
its urgent as i have to deliver functionality by tomorrow, n this error dun allow me to proceed.
Regards
Lehmia kiran
--
Cheers,
- Bob
-------------------------------------------------
Robert M. Fuhrer
Research Staff Member
Programming Technologies Dept.
IBM T.J. Watson Research Center
_______________________________________________
imp-dev mailing list
imp-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/imp-dev