Failed to load Main-Class manifest attribute from myFile.jar error
<p>I'm using IBM's Relational Application Developer (RAD) as my IDE. I have one Java class in my project and I named it extract.java. I have couple of library files and resources files associated with my project. I exported my project as a jar file using IDE and ran it through command line on solaris environment using following query:</p>

<pre><code>$java -jar myFile.jar 
</code></pre>

<p>I get the following error:</p>

<blockquote>
  <p>Failed to load Main-Class manifest attribute from myFile.jar</p>
</blockquote>

<p>I saw suggestions that manifest file needs to be updated. I'm not sure what does that mean since I'm new to java and any help will be great.</p>

<p>PS: There are no errors when I run class as Java Application from IDE on windows machine.</p>

<p><a href="https://i.stack.imgur.com/mzb6X.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/mzb6X.png" alt="enter image description here"></a></p>