java.lang.NoClassDefFoundError thrown when running jar file
<p>I am trying to run my jar file on a Mac (Haven't yet tried on any other platform). When I run using java -jar MyApp.jar I get the following error </p>

<p><strong>Stacktrace:</strong></p>

<pre><code>Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/log4j/Logger
at tabalchi.MyLogger.getLogger(MyLogger.java:51)
at tabalchiApp.TabalchiApp.printSystemProps(TabalchiApp.java:117)
at tabalchiApp.TabalchiApp.main(TabalchiApp.java:37)
</code></pre>

<p>So, as you can see the main class is recognized.
This is the manifest file. 
---></p>

<pre><code>Manifest-Version: 1.0
Class-Path: . jars/log4j-1.2.16.jar jars/jfugue-4.1.0-20120125.jar jars/gervill.jar jars/AppleJavaExtensions.jar  
Main-Class: tabalchiApp.TabalchiApp
SplashScreen-Image: tabalchiApp/resources/splash.png
</code></pre>

<p>&lt;---
And the folder structure in the jar file as follows. 
---></p>

<pre><code>META-INF/MANIFEST.MF
jars/AppleJavaExtensions.jar
jars/gervill.jar
jars/jfugue-4.1.0-20120125.jar
jars/log4j-1.2.16.jar
tabalchiApp/TabalchiApp.class   &lt;-- this is the main class
tabalchiApp/otherClasses.....class
</code></pre>

<p>&lt;---</p>

<p>I have read many posts about running .jar file but none of the solutions have worked for me. I would really appreciate your help on this one. </p>

<p>I am creating the jar file by exporting from eclipse. If I export to a runnable jar file then I cannot control the making of the manifest file. I need to add the splash image in the manifest file. And I am having some other issues with the runnable jar export. Hence this path. </p>
