Solved

eclipse java  build path

Posted on 2016-11-20
6
63 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
Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

 
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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
How to convert String matching to regex in java 4 48
servlet example 17 51
What's wrong with this code? 4 26
How to configure empty element in XML Document parser? 15 35
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…

807 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