I am building a small test app for Spark 2.1.0 running as a 2 worker cluster on my computer and packaging dependent libraries inside my application's jar file. How can I tell Spark during spark-submit that libraries inside applications's jar file? Otherwise I am getting Exception in thread "main" java.lang.NoClassDefFoundError.I am building a small test app for Spark 2.1.0