Working with and importing external libraries / frameworks in Java -


firstly n00b question. being junior dev i've never needed import , work other java frameworks. standard library enough me write classes needed write.

but getting exposed more "advanced" concepts, need start working external frameworks, e.g. json java, apache's httpclient java , on. , i'm looking basic understanding on how works , how go importing these libraries can start working classes...

so initial understanding each of these fraemworks provide .jar file contains classes framework. import project , lo , behold you'll able use classes/library in project importing e.g. 'import org.json.*;'

is understanding correct?

correct.

you add libraries classpath , able use classes these libs. how add libs classpath depends on actual development environment. if use apache maven example, have define dependencies (libs) in projects pom.xml , maven downloads them automatically you.

hth,
- martin


Comments

Popular posts from this blog

wireshark - USB mapping with python -

c++ - nodejs socket.io closes connection before upgrading to websocket -

Deploying Qt Application on Android is really slow? -