title: Gradle Spark Jar not running in Ubuntu after being build in Mac
body: <p>We are trying to run a gradle spark jar on Ubuntu which was built on Mac.The jar runs fine on Mac but in Ubuntu it gives Cannot load or find Main class.Kindly help resolving the issue</p>
  <p>project(&quot;:spark&quot;){</p>
  <pre><code>dependencies{
      compileOnly group: &quot;org.apache.spark&quot;, name: &quot;spark-mllib_${scala_version}&quot;, version: &quot;${spark_version}&quot;
  }
  task fatJar(type: Jar) {
      duplicatesStrategy = DuplicatesStrategy.EXCLUDE
      zip64 true
      manifest {
          attributes 'Main-Class': &quot;com.abc.launcher.HelloWorld&quot;
      }
      archiveBaseName = &quot;HelloWorld&quot;
      from { configurations.compileClasspath.collect { it.isDirectory() ? it : zipTree(it) } }
      with jar
  
  }
  </code></pre>