1
2
3
4
5
6 package net.sf.zel.nr;
7
8 import java.io.IOException;
9 import java.util.Properties;
10
11
12
13
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
30 }
31 }