Solved

eclipse java  build path

Posted on 2016-11-20
6
57 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
DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

 
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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
replace a word with other 1 44
Oracle SQL syntax check  without executing 6 56
even odd program using while loop 3 41
SHA2 certs for IIS AND Java? 2 93
After being asked a question last year, I went into one of my moods where I did some research and code just for the fun and learning of it all.  Subsequently, from this journey, I put together this article on "Range Searching Using Visual Basic.NET …
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Video by: Michael
Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.

810 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