title: Getting supported CPU Features/Instructions in Java
body: <p>I have a Java application that is a wrapper for a different application (which requires >=SSE4_1 to be supported).</p>
  
  <p>Because of this, I want to be able to detect the avaible CPU Features (Instruction Sets) in my Java application. I have not yet found a solution on how to do this in Java, one workaround would be using googles "cpu_features" C Library and creating a simple helper tool that exits with 0 or 1. But that would also require me to compile the C application for all platforms and isn't really an elegant solution. On linux you could <code>cat /proc/cpuinfo</code> for this, but not on Windows.</p>
  
  <p>And then there is also a difference in the avaible Features on the <strong>CPU</strong> and the ones that are <em>actually</em> supported by the <strong>OS</strong> (which is the result you need).</p>
  
  <p>Could someone give me a guiding hand here? Thank you in advance!</p>