title: only some methods accessible in jar file
body: <p>I got a java class from which I created a jar file to access the class in another project.</p>
  
  <p>the class looks like this</p>
  
  <pre><code>public class RunMain {
  
      private ArgumentObject argObject = null;
      private String outputFile = null;
      private SimObject simObject = null;
  
      public RunMain() {
      }
  
      public RunMain(String file) {
          outputFile = file;
      }
  
      public static void main(String[] args) throws Exception {
          new RunMain().doMain(args);
      }
  
      public void testMethod(){
  
      }
  
      public void blaMethod(){
  
      }
  
      public SimObject getResults(){
          return simObject;
      }
  
      public void doMain(String[] args) throws Exception {
  
          // do some stuff
  
      }  
  
      // write term and doc vectors to bin files
      void writeVectorStore() throws Exception{
  
          // do some stuff
      } 
  }
  </code></pre>
  
  <p>My problem is, that when I now wanna access the methods in another project I can only call the main method or the doMain method.</p>
  
  <pre><code>RunMain run = new RunMain();
  run.doMain(arguments);
  </code></pre>
  
  <p>this works fine</p>
  
  <pre><code>SimObject simObject = run.getResults();
  </code></pre>
  
  <p>this is marked red with "The method getResults() is undefined for the type RunMain"</p>
  
  <p>Does someone have an idea why this is happening?</p>