title: Running from eclipse says os.arch as x86_32 , but jar says amd-64#64
body: <p>Finding a peculiar problem.
  I ran a simple Java Program to find the os.arch version , then I am getting proper X86 architecture with 32 bit , but same when I am running as Jar , I am getting AMD64#64 as output.</p>
  
  <p>Following is the code I am using.</p>
  
  <p>System S.O.P-</p>
  
  <ul>
  <li><blockquote>
    <p>--- > x86</p>
  </blockquote></li>
  <li><blockquote>
    <p>--2---> 32</p>
  </blockquote></li>
  </ul>
  
  <p>Running from Eclipse-</p>
  
  <p><img src="https://i.stack.imgur.com/hMgWg.png" alt="enter image description here"></p>
  
  <pre><code>import javax.swing.JFrame;
  import javax.swing.JOptionPane;
  
  
  public class CHECK extends JFrame
  {
      public CHECK ()
      {
          JOptionPane.showMessageDialog( null, System.getProperty("os.arch")+" # " +System.getProperty("sun.arch.data.model"));
  
  
      }
  
  
      /**
       * @param args
       */
      public static void main ( String[] args )
      {
          // TODO Auto-generated method stub
          new CHECK();
  
      }
  
  }
  </code></pre>
  
  <p>But when I am running as Runnable Jar-</p>
  
  <p>My System details-
  <img src="https://i.stack.imgur.com/WbolK.png" alt="enter image description here"></p>
  
  <p><img src="https://i.stack.imgur.com/IqJIK.png" alt="enter image description here"></p>