Solved

eclipse java  build path

Posted on 2016-11-20
6
21 Views
Last Modified: 2016-11-20
Hi,

I have my Mockito Sample project as in Mockito1.jpg screenshot with 3 jars. I went to java build path and added one jar(mockito-all-1.10.19.jar) as in Mockito2.jpg

when i did that step under lib directory i see only 2 jars instead of 3 jars(as in attachment Mockito3.jpg

I wonder why lib folder only shows 2 instead of all 3 jars. please advise
mockito1.png
mockito2.png
mockito3.png
0
Comment
Question by:gudii9
  • 3
  • 3
6 Comments
 
LVL 35

Accepted Solution

by:
mccarl earned 500 total points
ID: 41895156
It's a bit hard to tell just from those screenshots, but at a guess I would say that it doesn't show in the lib folder because it is now properly recognised by Eclipse and should actually show in the "Referenced Libraries" section. Just having the jar sitting in that "lib" folder doesn't make them visible to Eclipse. But what you did by adding it to the build path, makes it recognised by Eclipse and so for some reason, Eclipse must have decided to NOT show it in the lib folder because it does know about it and shows it in "Referenced Libraries" instead.

If your not sure what I am saying above, can you do the same set of screenshots but with the "Referenced Libraries" expanded and visible too.
0
 
LVL 7

Author Comment

by:gudii9
ID: 41895169
"Referenced Libraries" section

how to check this?
i see when i right click on project--->properties--->java build path-->libraries ...i see that.

is that is same as '"Referenced Libraries" section' section??
mockito4.png
0
 
LVL 35

Expert Comment

by:mccarl
ID: 41895195
OMG &^%@#&@^%

"Referenced Libraries" section

how to check this?

In screenshots 1 and 3, find where it shows your "lib" folder. Now the first (or the second) item above that SAYS... "Referenced Libraries"   !!!!
0
Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

 
LVL 7

Author Comment

by:gudii9
ID: 41895202
under windows--->preferences i searched on 'reference libraries' i could not find anything
0
 
LVL 35

Expert Comment

by:mccarl
ID: 41895208
Seriously????
0
 
LVL 7

Author Comment

by:gudii9
ID: 41895211
i see. you mean right above LIB

When i rechecked now i see all 3 libraries both under lib and also under referenced libraries.

may be eclipse took some time to refresh ??
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Suggested Solutions

This was posted to the Netbeans forum a Feb, 2010 and I also sent it to Verisign. Who didn't help much in my struggles to get my application signed. ------------------------- Start The idea here is to target your cell phones with the correct…
Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now