View Javadoc

1   /*
2    * To change this template, choose Tools | Templates
3    * and open the template in the editor.
4    */
5   
6   package net.sf.zel.nr;
7   
8   import java.io.IOException;
9   import java.util.Properties;
10  
11  /**
12   *
13   * @author zoly
14   */
15  public abstract class OperableGNUNumber extends OperableNumber
16  {
17  
18      static
19      {
20          Properties props = new Properties();
21          try
22          {
23              props.load(Thread.currentThread().getContextClassLoader().getResourceAsStream("version.properties"));
24          } catch (IOException ex)
25          {
26              throw new RuntimeException("Cannot figure out what native library version of zel-math we need", ex);
27          }
28          System.loadLibrary("zel-math-" + props.getProperty("version"));
29  //      NarSystem.loadLibrary(); this a nar plugin generated loader
30      }
31  }