title: Cannot execute binary file - Mac java
body: <p>I recently have started coding in eclipse for mac and have made few projects. I exported 2 to runnable jars and they worked fine, but this third one wouldn't run when I exported it. I ran it in terminal and got this error:</p>
  
  <p>cannot execute binary file</p>
  
  <p>Normally I just double click and it works for me, but this time it just showed a blank window. So I tried terminal to see what was wrong.</p>
  
  <p>Does anyone know whats wrong?</p>
  
  <p>here is a screen shot:</p>
  
  <p><a href="https://www.dropbox.com/s/h1xu50czem60ud2/Screen%20Shot%202015-02-26%20at%207.42.33%20PM.png?dl=0" rel="nofollow">https://www.dropbox.com/s/h1xu50czem60ud2/Screen%20Shot%202015-02-26%20at%207.42.33%20PM.png?dl=0</a></p>
  
  <p>I was able to find a few things out:</p>
  
  <p>the program crashes before its able to draw when it is exported</p>
  
  <p>it crashed on the first loop of these for statements</p>
  
  <pre><code>for (int y = 0; y &lt; 15; y++) {
      for (int x = 0; x &lt; 20; x++) {
          g.drawImage(tiles.images[Grids[x][y].Bottomid], x * 32, y * 32,32, 32, null);
          g.drawImage(tiles.images[Grids[x][y].Topid], x * 32, y * 32,32, 32, null);
              }
          }`
  </code></pre>
  
  <p>tiles.images[Grids[x][y].Bottomid] is a BufferedImage.</p>