title: Java Advanced Imaging "PlanarImage" class not found
body: <p>Let me start by saying I've recently inherited a Java application written using <strong>Eclipse</strong>. I'm new to this language/IDE, but I have a lot of experience with <code>C#</code> and <code>Visual Studio</code>. So, my problem may be something very silly, but I have a foundation so I'm not a total programming newb.</p>
  
  <p>I'm exporting this project as a <em>runnable JAR</em>, using a launch configuration provided by the original developer. I have tried this with both "<strong>Extract required libraries into generated JAR</strong>" and "<strong>Package required libraries into generated JAR</strong>". Either way, <br/>I get the following <em>error</em> when I launch the application:</p>
  
  <pre><code>java.lang.NoClassDefFoundError: javax/media/jai/PlanarImage
  </code></pre>
  
  <p>I launch the application using this command, where <code>appName.properties</code> is a properties file that's required for running the app:</p>
  
  <pre><code>java -jar appName.jar appName.properties
  </code></pre>
  
  <p>This occurs multiple times from separate stack traces. I'm not seeing any other runtime errors or compile errors. My JRE system library is <code>jre1.5.0_05</code>. I installed <code>JAI</code> by downloading <code>jai-1_1_3-lib-windows-i586-jre.exe</code> from <a href="http://download.java.net/media/jai/builds/release/1_1_3/" rel="nofollow">http://download.java.net/media/jai/builds/release/1_1_3/</a> and installing it into the <code>jre5</code> directory. My project did not compile until I got this specific version of java, and installed the <code>JAI</code> jre into that version's folder, so I am fairly certain I have that part together correctly.</p>
  
  <p>Finally, here is my classpath:</p>
  
  <pre><code>C:\Program Files (x86)\Java\jre1.5.0_05\lib\ext\jai_codec.jar;C:\Program Files (x86)\Java\jre1.5.0_05\lib\ext\jai_core.jar;C:\Program Files (x86)\junit4.10\junit-4.10.jar;.
  </code></pre>
  
  <p>Is there anything obvious I'm doing <em>wrong</em> here? Is there any other information that would be helpful in figuring out why I'm getting this <em>error</em>?</p>