Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » Problem : Indirect referenced from required .class files
Problem : Indirect referenced from required .class files [message #42998] Thu, 29 January 2009 17:41 Go to next message
Kap Pak is currently offline Kap PakFriend
Messages: 52
Registered: July 2009
Member
Hi,

I am developing a plugin that adds a new view to the eclipse platform. I
have included the necessary info in my plugin.xml file(it has no
errors).My class looks like:

*********************************BEGIN CLASS******************************
package org.eclipse.examples.helloworld;

import org.eclipse.swt.widget.*;
import org.eclipse.ui.part.*;
import org.eclipse.ui.*;
import org.eclipse.core.runtime.*;


public class LabelView extends ViewPart{

private LabelView(){
}

public void setFocus(){
...
...
}

public void createPartControl(Composite parent){
...
...
}


}
**************************END CLASS**********************************

I have included many .jar files in the build path including:

org.eclipse.core.runtime_3.3.100.v20070530.jar
org.eclipse.core.boot......jar
org.eclipse.swt......jar
org.eclipse.core.runtime.......jar
org.eclipse.ui.workbench.......jar
...
...
and others

but i still receive the following errors:

(1) At the package declaration the error is :
The type "org.eclipse.core.runtime.IConfigurationElement" cannot be
resolved. It is indirectly referenced from required .class files.

(2) At the class declaration i get the following errors:
- The type "org.eclipse.core.runtime.IAdaptable" cannot be resolved. It is
indirectly referenced from required .class files.

- The type "org.eclipse.core.runtime.IExecutableExtension" cannot be
resolved. It is indirectly referenced from required .class files.

- The hierarchy of the type LabelView(my class name) is inconsistent.

I am using Eclipse version "3.3.0 Java EE" and i have searched its plugin
folder to find the jar file with the name "org.eclipse.core.runtime.jar"
but i only find "org.eclipse.core.runtime_3.3.100.v20070530.jar". I don't
know if they are the same. I don't think they are the same looking at the
error messages.

I am asking if someone can kindly halp me to solve this problem. I have
spent the whole day trying to fix it but no answer. I have googled so many
times but no answer.

Thanks
Re: Problem : Indirect referenced from required .class files [message #43443 is a reply to message #42998] Sun, 01 February 2009 03:31 Go to previous message
Prakash G.R. is currently offline Prakash G.R.Friend
Messages: 621
Registered: July 2009
Senior Member
> I have included many .jar files in the build path including:
Don't include the jar files manully. Use the dependencies tab in your
plugin.xml editor to manage the dependencies on the plugins

- Prakash

--

http://blog.eclipse-tips.com
"Kap Pak" <win1for@yahoo.com> wrote in message
news:9b46d03f8e5b3a041443e4e710d8540a$1@www.eclipse.org...
> Hi,
>
> I am developing a plugin that adds a new view to the eclipse platform. I
> have included the necessary info in my plugin.xml file(it has no
> errors).My class looks like:
>
> *********************************BEGIN CLASS******************************
> package org.eclipse.examples.helloworld;
>
> import org.eclipse.swt.widget.*;
> import org.eclipse.ui.part.*;
> import org.eclipse.ui.*;
> import org.eclipse.core.runtime.*;
>
>
> public class LabelView extends ViewPart{
>
> private LabelView(){
> }
>
> public void setFocus(){
> ..
> ..
> }
>
> public void createPartControl(Composite parent){
> ..
> ..
> }
>
>
> }
> **************************END CLASS**********************************
>
> I have included many .jar files in the build path including:
>
> org.eclipse.core.runtime_3.3.100.v20070530.jar
> org.eclipse.core.boot......jar
> org.eclipse.swt......jar
> org.eclipse.core.runtime.......jar
> org.eclipse.ui.workbench.......jar
> ...
> ...
> and others
>
> but i still receive the following errors:
>
> (1) At the package declaration the error is :
> The type "org.eclipse.core.runtime.IConfigurationElement" cannot be
> resolved. It is indirectly referenced from required .class files.
>
> (2) At the class declaration i get the following errors:
> - The type "org.eclipse.core.runtime.IAdaptable" cannot be resolved. It is
> indirectly referenced from required .class files.
>
> - The type "org.eclipse.core.runtime.IExecutableExtension" cannot be
> resolved. It is indirectly referenced from required .class files.
>
> - The hierarchy of the type LabelView(my class name) is inconsistent.
>
> I am using Eclipse version "3.3.0 Java EE" and i have searched its plugin
> folder to find the jar file with the name "org.eclipse.core.runtime.jar"
> but i only find "org.eclipse.core.runtime_3.3.100.v20070530.jar". I don't
> know if they are the same. I don't think they are the same looking at the
> error messages.
>
> I am asking if someone can kindly halp me to solve this problem. I have
> spent the whole day trying to fix it but no answer. I have googled so many
> times but no answer.
>
> Thanks
>
>
>
Re: Problem : Indirect referenced from required .class files [message #590882 is a reply to message #42998] Sun, 01 February 2009 03:31 Go to previous message
Prakash G.R. is currently offline Prakash G.R.Friend
Messages: 621
Registered: July 2009
Senior Member
> I have included many .jar files in the build path including:
Don't include the jar files manully. Use the dependencies tab in your
plugin.xml editor to manage the dependencies on the plugins

- Prakash

--

http://blog.eclipse-tips.com
"Kap Pak" <win1for@yahoo.com> wrote in message
news:9b46d03f8e5b3a041443e4e710d8540a$1@www.eclipse.org...
> Hi,
>
> I am developing a plugin that adds a new view to the eclipse platform. I
> have included the necessary info in my plugin.xml file(it has no
> errors).My class looks like:
>
> *********************************BEGIN CLASS******************************
> package org.eclipse.examples.helloworld;
>
> import org.eclipse.swt.widget.*;
> import org.eclipse.ui.part.*;
> import org.eclipse.ui.*;
> import org.eclipse.core.runtime.*;
>
>
> public class LabelView extends ViewPart{
>
> private LabelView(){
> }
>
> public void setFocus(){
> ..
> ..
> }
>
> public void createPartControl(Composite parent){
> ..
> ..
> }
>
>
> }
> **************************END CLASS**********************************
>
> I have included many .jar files in the build path including:
>
> org.eclipse.core.runtime_3.3.100.v20070530.jar
> org.eclipse.core.boot......jar
> org.eclipse.swt......jar
> org.eclipse.core.runtime.......jar
> org.eclipse.ui.workbench.......jar
> ...
> ...
> and others
>
> but i still receive the following errors:
>
> (1) At the package declaration the error is :
> The type "org.eclipse.core.runtime.IConfigurationElement" cannot be
> resolved. It is indirectly referenced from required .class files.
>
> (2) At the class declaration i get the following errors:
> - The type "org.eclipse.core.runtime.IAdaptable" cannot be resolved. It is
> indirectly referenced from required .class files.
>
> - The type "org.eclipse.core.runtime.IExecutableExtension" cannot be
> resolved. It is indirectly referenced from required .class files.
>
> - The hierarchy of the type LabelView(my class name) is inconsistent.
>
> I am using Eclipse version "3.3.0 Java EE" and i have searched its plugin
> folder to find the jar file with the name "org.eclipse.core.runtime.jar"
> but i only find "org.eclipse.core.runtime_3.3.100.v20070530.jar". I don't
> know if they are the same. I don't think they are the same looking at the
> error messages.
>
> I am asking if someone can kindly halp me to solve this problem. I have
> spent the whole day trying to fix it but no answer. I have googled so many
> times but no answer.
>
> Thanks
>
>
>
Previous Topic:Web Start Eclipse Platform failing
Next Topic:Web Start Eclipse Platform failing
Goto Forum:
  


Current Time: Tue Jun 15 22:38:33 GMT 2021

Powered by FUDForum. Page generated in 0.02087 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top