O'Reilly logo

Java 9 Cookbook by Nick Samoylov, Mohamed Sanaulla

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Getting ready

All the required JARs are already present in the location, chp11\5_apache_http_demo\mods:

Once these JARs are on the module path, we can declare a dependency on these JARs in module-info.java, which is present at the location, chp11\5_apache_http_demo\src\http.client.demo, as shown in the following code snippet:

module http.client.demo{  requires httpclient;  requires httpcore;  requires commons.logging;  requires commons.codec;}

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required