title: OMNeT++ IDE crash on Mac OS X Sierra
body: <p>Recently we installed OMNeT++ 5.0 on a couple of OS X (MacOS Sierra) machines and found that the IDE crashes when starting. The compilation had no problems. Here’s the crash report we got (a partial stack trace).</p>
  
  <pre><code>Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
  0   com.apple.CoreFoundation        0x00007fff98a41bf4 CFBundleGetFunctionPointerForName + 36
  1   org.eclipse.Eclipse             0x0000000100003006 findSymbol + 66
  2   org.eclipse.Eclipse             0x0000000100001791 original_main + 1572
  3   org.eclipse.Eclipse             0x0000000100001e50 main + 1230
  4   org.eclipse.Eclipse             0x0000000100000fec start + 52
  </code></pre>
  
  <p>When I investigated, I found that the IDE (i.e., Eclipse) was not able to find the plugins though the application bundle had the paths specified.</p>
  
  <p>I’ve no idea how it worked before. Maybe something changed with OS X Sierra.</p>
  
  <p>Since I wanted desperately to get it working, I found a dirty hack. </p>
  
  <p><code>1</code> Right click on the omnetpp.app</p>
  
  <p><code>2</code> Select ‘Show Package Contents’</p>
  
  <p><code>3</code> Go to Contents/MacOS and open the omnetpp.ini with a text editor. You should see something like this</p>
  
  <pre><code>-startup
  ../../../plugins/org.eclipse.equinox.launcher_1.3.0.v20140415-2008.jar
  --launcher.library
   ../../../plugins/org.eclipse.equinox.launcher.cocoa.macosx.x86_64_1.1.200.v20150204-1316
  -name
  OMNeT++ IDE
  -vmargs
  -Xms256m
  -Xmx1024m
  -XX:MaxPermSize=320m
  </code></pre>
  
  <p><code>4</code> Change all the paths given to absolute paths (to where your OMNeT++ 5.0 is installed). Example,</p>
  
  <pre><code>../../../plugins/org.eclipse.equinox.launcher_1.3.0.v20140415-2008.jar
  </code></pre>
  
  <p>to </p>
  
  <pre><code>/Users/myhome/omnet-5.0/ide/plugins/org.eclipse.equinox.launcher_1.3.0.v20140415-2008.jar
  </code></pre>
  
  <p>A proper solution is greatly appreciated.</p>
  
  <p>Thanks in advance.</p>