Solved

eclipse java  build path

Posted on 2016-11-20
6
86 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
6 Comments
 
LVL 36

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 36

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
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 7

Author Comment

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

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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
In this post we will learn how to make Android Gesture Tutorial and give different functionality whenever a user Touch or Scroll android screen.
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
This video teaches viewers about errors in exception handling.

688 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