Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » referenced from required .class files
referenced from required .class files [message #662494] Wed, 30 March 2011 20:15 Go to next message
vsek Mising name is currently offline vsek Mising nameFriend
Messages: 6
Registered: March 2010
Junior Member
Sorry if this is the wrong place. I didnt see exactly where to post it. In my eclipse (3.3.2) I am getting an error "XXX class cannot be resolved.It is indirectly referenced from required .class files"

Problem is its clearly there. I saw in previous posts that some users are changing the installed jre's to sort of "reset" it. I tried that but no luck.
What else can I do?

Re: referenced from required .class files [message #662499 is a reply to message #662494] Wed, 30 March 2011 20:21 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33142
Registered: July 2009
Senior Member
Are these plugin projects you're working on? I imagine so. Generally
you should find out which bundle contains that class and add that bundle
to the dependencies of the MANIFEST.MF.

vsek wrote:
> Sorry if this is the wrong place. I didnt see exactly where to post
> it. In my eclipse (3.3.2) I am getting an error "XXX class cannot be
> resolved.It is indirectly referenced from required .class files"
>
> Problem is its clearly there. I saw in previous posts that some users
> are changing the installed jre's to sort of "reset" it. I tried that
> but no luck.
> What else can I do?
>
>


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: referenced from required .class files [message #662504 is a reply to message #662499] Wed, 30 March 2011 20:33 Go to previous messageGo to next message
vsek Mising name is currently offline vsek Mising nameFriend
Messages: 6
Registered: March 2010
Junior Member
yes its a new jar I added to my build path. I was able to import in other classes from that jar just fine. When I import one in particular I get this error. Thats why I was confused
Re: referenced from required .class files [message #662506 is a reply to message #662504] Wed, 30 March 2011 20:37 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33142
Registered: July 2009
Senior Member
That doesn't answer whether your developing bundles or not... You might
have a jar x.jar that has classes A and B. You might be able to import
A fine, but B might depend on C and C might not be in x.jar so you'll
find B can't be imported without this problem. It might be in y.jar, so
you'll need to find where C is defined and be sure the jar for it is in
the classpath. If you're developing bundles, you do that by editing the
MANIFEST.MF.

vsek wrote:
> yes its a new jar I added to my build path. I was able to import in
> other classes from that jar just fine. When I import one in particular
> I get this error. Thats why I was confused


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: referenced from required .class files [message #662508 is a reply to message #662506] Wed, 30 March 2011 21:00 Go to previous messageGo to next message
vsek Mising name is currently offline vsek Mising nameFriend
Messages: 6
Registered: March 2010
Junior Member
thks for reposnses. Not developing bundles(actually not %100 sure what it means).
I simply added a jar which supposedly has all I need and "looks" like it has all I need but myabe it doesnt actually then.;
Re: referenced from required .class files [message #662517 is a reply to message #662508] Wed, 30 March 2011 21:53 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33142
Registered: July 2009
Senior Member
Have you figured out which jar contains the class it's complaining
about? Ctrl-Shift-T might help.


vsek wrote:
> thks for reposnses. Not developing bundles(actually not %100 sure what
> it means).
> I simply added a jar which supposedly has all I need and "looks" like
> it has all I need but myabe it doesnt actually then.;


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: referenced from required .class files [message #662525 is a reply to message #662517] Wed, 30 March 2011 22:40 Go to previous messageGo to next message
vsek Mising name is currently offline vsek Mising nameFriend
Messages: 6
Registered: March 2010
Junior Member
So if I do the ctrl+alt+t I can find the class its complaining about but it says "source not found" when opening it<- I assume thats my problem or is it ok as long as its found?
Forgive me... I spent 8 yrs as a smalltalk developer and am scratching my head how all these associations work.

So, I clicked on "attach source" and choose the jar file I know I need and nothing changes(wasnt sure if this is my issue)
Re: referenced from required .class files [message #662531 is a reply to message #662525] Wed, 30 March 2011 23:34 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33142
Registered: July 2009
Senior Member
There might not be any source, but you do need to locate the jar so you
can add it to your classpath. I can't tell you where it is.


vsek wrote:
> So if I do the ctrl+alt+t I can find the class its complaining about
> but it says "source not found" when opening it<- I assume thats my
> problem or is it ok as long as its found?
> Forgive me... I spent 8 yrs as a smalltalk developer and am scratching
> my head how all these associations work.
>
> So, I clicked on "attach source" and choose the jar file I know I need
> and nothing changes(wasnt sure if this is my issue)
>


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: referenced from required .class files [message #662723 is a reply to message #662525] Thu, 31 March 2011 16:21 Go to previous message
Eric Rizzo is currently offline Eric RizzoFriend
Messages: 3070
Registered: July 2009
Senior Member
On 3/30/11 6:40 PM, vsek wrote:
> So if I do the ctrl+alt+t I can find the class its complaining about but
> it says "source not found" when opening it<- I assume thats my problem
> or is it ok as long as its found?
> Forgive me... I spent 8 yrs as a smalltalk developer and am scratching
> my head how all these associations work.
>
> So, I clicked on "attach source" and choose the jar file I know I need
> and nothing changes(wasnt sure if this is my issue)
>

It seems likely that you added x.jar to your project's build path, but
x.jar depends on another JAR, y.jar, that isn't on your project's build
path. In that case, you need to add all JARs that x.jar depends on.
If you gave details, such as the JAR(s) you've added and the class's
that are listed in the error(s), our help could perhaps be more specific.

Eric
Previous Topic:difference in scope of variable depending on code location
Next Topic:Problem downloading plugin in eclipse helios 2
Goto Forum:
  


Current Time: Fri Apr 26 10:38:33 GMT 2024

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

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

Back to the top