Changeset 7575


Ignore:
Timestamp:
01/21/11 23:13:41 (9 years ago)
Author:
aivar
Message:

Added utility for dealing with native libraries.

Location:
branches/maven/projects/curve-fitter
Files:
1 deleted
2 edited

Legend:

Unmodified
Added
Removed
  • branches/maven/projects/curve-fitter/pom.xml

    r7399 r7575  
    5252      <version>3.2.2</version> 
    5353    </dependency> 
     54    <dependency> 
     55      <groupId>imagej</groupId> 
     56      <artifactId>native-library-util</artifactId> 
     57      <version>2.0-SNAPSHOT</version> 
     58    </dependency> 
    5459  </dependencies> 
    5560 
  • branches/maven/projects/curve-fitter/src/main/java/loci/curvefitter/SLIMCurveFitter.java

    r7292 r7575  
    4040import com.sun.jna.Native; 
    4141import com.sun.jna.Platform; 
     42 
     43import imagej.nativelibrary.NativeLibraryUtil; 
    4244 
    4345/** 
     
    139141        if (null == s_library) { 
    140142            try { 
     143                // extract to library path 
     144                System.out.println("extract native library returns " + NativeLibraryUtil.extractNativeLibraryToPath(this.getClass(), "SLIMCurve-2.0-SNAPSHOT")); 
     145                 
    141146                // load once, on-demand 
    142147                s_library = (CLibrary) Native.loadLibrary("SLIMCurve", CLibrary.class); 
Note: See TracChangeset for help on using the changeset viewer.