title: How to build Dockerfile with two jar files
body: <p>I'm starting with Docker and I'm a little bit lost.</p>
  
  <p>I have my java experiment with two jar files, zip files with testing data and two configuration files.
  And I'm trying to run this exp on Docker.</p>
  
  <p>If I want to run this exp on my pc there are two phases.</p>
  
  <p>Phase 1: </p>
  
  <pre><code>java -classpath library.jar;alg.jar library.utl.App.class in.cf
  </code></pre>
  
  <p>where the last parameter is configuration and after this I'll get generated file <strong>alg1.bin</strong></p>
  
  <p>Phase 2: </p>
  
  <pre><code>java -classpath library.jar;alg.jar library.utl.App.class ot.cf
  </code></pre>
  
  <p>where I'm working with file <strong>alg1.bin</strong> and this is main test.</p>
  
  <p>I used Dockerfile for phase 1:</p>
  
  <pre><code>FROM java:7
  
  ADD java-exp /usr/local/
  
  CMD ["java", "-classpath",
  "/usr/local/library.jar;/usr/local/alg.jar",
  "/usr/local/library.utl.App.class", "/usr/local/in.cf"]
  </code></pre>
  
  <p>This I built successfully but when I try</p>
  
  <pre><code>docker run java-exp
  </code></pre>
  
  <p>I get an error:</p>
  
  <blockquote>
    <p>Error: Could not find or load main class
    .usr.local.library.utl.App.class.</p>
  </blockquote>
  
  <p>Can anyone help me to solve this?</p>
  
  <p>In the better way, help me merge both two phases into one Dockerfile?
  Thanks.</p>