How to set web application lib directory to classpath for compiliing java src?

I am trying to compile web application source via command prompt. its throwing lot of error just because of lib directory jar files were not set to compiler classpath and build.gradle is failing. Your help is appreciated. Thanks in Advance.