<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    Hello Michael<br>
    <br>
    I just tried on my side and it worked well. Did you compiled with
    "make", and executed "make install" after a successful Proj.4 build?
    I believe (but I'm not sure, Frank could confirm) that "make
    install" is necessary in order to copy some necessary files like the
    EPSG list of definitions in proper locations. Maybe the exception
    that you get is caused by Proj.4 not finding the EPSG file?<br>
    <br>
    &nbsp;&nbsp;&nbsp; Martin<br>
    <br>
    <br>
    Le 23/11/11 02:57, Michael Speth a &eacute;crit&nbsp;:
    <blockquote cite="mid:4ECC52F3.60001@landcareresearch.co.nz"
      type="cite">
      <meta http-equiv="content-type" content="text/html;
        charset=ISO-8859-1">
      <font size="-1">Anyone have experience with using the jniwrap java
        wrapper?<br>
        <br>
        I've compiled the jar and set the native library path; however,
        I get an error when I try to run the example from the README.&nbsp;
        Is there something that I haven't configured correctly?<br>
        <br>
        [code]<br>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; PJ sourcePJ = new PJ("+init=epsg:32632");&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; //
        (x,y) axis order<br>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; PJ targetPJ = new PJ("+proj=latlong +datum=WGS84"); //
        (&#955;,&#966;) axis order<br>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; double[] coordinates = {<br>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 500000,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0,&nbsp;&nbsp; // First coordinate<br>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 400000,&nbsp; 100000,&nbsp;&nbsp; // Second coordinate<br>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 600000, -100000&nbsp;&nbsp;&nbsp; // Third coordinate<br>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; };<br>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; sourcePJ.transform(targetPJ, 2, coordinates, 0, 3);<br>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; System.out.println(Arrays.toString(coordinates));<br>
        <br>
        [output]<br>
        Exception in thread "main" java.lang.IllegalArgumentException:
        +init=epsg:32632<br>
        &nbsp;&nbsp;&nbsp; at org.proj4.PJ.&lt;init&gt;(Unknown Source)<br>
        &nbsp;&nbsp;&nbsp; at
        org.landcare.scenzgrid.proj4.test.HEALPixTest.main(HEALPixTest.java:36)<br>
        <br>
        Thanks</font><br>
    </blockquote>
    <br>
  </body>
</html>