title: Java: How to enable JIT?
body: <p>I have a problem running a Java application through Eclipse. Upon clicking Run, a prompt shows:</p>
  
  <p>"Assertion failed!
  Program:../truetype.c
  Line: 2133</p>
  
  <p>Expression: glyph != NULL </p>
  
  <p>(Please Retry to debug the application - JIT must be enabled)"</p>
  
  <p><img src="https://i.stack.imgur.com/wPMTM.png" alt="enter image description here">
  * Upon clicking Retry, a prompt shows "javaw.exe has stopped working". </p>
  
  <p><img src="https://i.stack.imgur.com/4I2AQ.png" alt="enter image description here"></p>
  
  <p>I tried to restart my laptop but the problem still occurs. Anyone knows how to solve it? Thanks in advance. </p>
  
  <p><strong>EDIT 1 :</strong>
  Below is the code I try to run.</p>
  
  <pre><code>public static void main(String[] args) {
      initView();
  }
  
  private static void initView() {
      final JFrame frame = new JFrame();
      frame.setTitle("Testing 101");
      frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
  
      final JTextField nameTextField = new JTextField();
      frame.getContentPane().add(nameTextField);
  
      JButton saveButton = new JButton();
      saveButton.addActionListener(new ActionListener() {
          public void actionPerformed(ActionEvent e) {
              JOptionPane.showMessageDialog(frame, "Hello "+nameTextField.getText());
          }
      });
      frame.getContentPane().add(saveButton);
  
      // Display.
      frame.pack();
      frame.setVisible(true);
  }
  </code></pre>