Solved

eclipse java  build path

Posted on 2016-11-20
6
69 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
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 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: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone 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
servlet example 17 58
login form jsp example 2 47
JavaFX TableView not displaying correctly 3 100
program arguments vs VM arguments 4 25
INTRODUCTION Working with files is a moderately common task in Java.  For most projects hard coding the file names, using parameters in configuration files, or using command-line arguments is sufficient.   However, when your application has vi…
By the end of 1980s, object oriented programming using languages like C++, Simula69 and ObjectPascal gained momentum. It looked like programmers finally found the perfect language. C++ successfully combined the object oriented principles of Simula w…
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

679 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