all source files are under src and libraries are in project class path

Hi,

I was reading as below

'all source files are under src and libraries are in project class path'

what is the meaning of above line and what is the importance of it. I do not have clear understanding on setting build path etc with or without eclipse.  How it is different if we use third party jars. please advise.
LVL 7
gudii9Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

girionisCommented:
In your project's structure you have several folders. The "src" folder is where the source files go while all the libraries go to "lib" folder. This folder is included in the classpath.
0
gudii9Author Commented:
"This folder is included in the classpath."

I have not understood this part very well. Esp how the eclpse does it. Like adding externl jars, internal jar, adding libraries. It is bit confusing. Some time projects work fine withough setting 'java build path' once i just copy jar to lib directory. Some times they do not work. Please advise.

Is setting classpath similar to setting JRE and JDK from my windlws laptop--->computer-->properties-->advanced properties-->set PATH/JAVA_HOME etc
0
gudii9Author Commented:
libraries go to "lib" folder. This folder is included in the classpath.

How to include lib folder with or without eclipse say for some simple J2EE project. please advise
0
Cloud Class® Course: Python 3 Fundamentals

This course will teach participants about installing and configuring Python, syntax, importing, statements, types, strings, booleans, files, lists, tuples, comprehensions, functions, and classes.

girionisCommented:
In Eclipse it is included automatically, by default. When you build your project all the jars in the lib folder should be available. You shouldn't do anything else.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
gudii9Author Commented:
But i remember doing multiple times manually adding to build path libraries in my previous projects. I wonder when i have to do that manual job when eclipse does automatically?

Do i need to refresh/clean/build/restart server etc for eclipse to do it automatically? Till then it wont reflect.  Say i have added new library(say xyz.jar) but the compilation errors due to missing xyz.jar will be there even after copying it to lib folder. so do i need to do all the steps like refresh/clean/build/restart server to reflect that jar to show up and clear compilation errors
0
girionisCommented:
I think if you have a web-application project then they are added automatically. If you have a standalone project then you need to add them manually.
0
gudii9Author Commented:
oh. Is there is a link which explains this subtle difference. Please advise
0
gudii9Author Commented:
How about EJB or web service projects. How it behaves?
0
gudii9Author Commented:
please advise
0
girionisCommented:
Not sure if there is a link, I know that with a web project all lib files are included since I have experienced it myself. With EJB or web services, it should be the same but I am not 100% sure. Why don't you try it yourself and see?
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Java EE

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.