I am developing in Java on Windows 7 with Eclipse (Luna).
I am using gdal for some ogr processes and running the application from eclipse is fine, but running from command line on the same machine is running into problems.
and I get the following:
Caused by: java.lang.UnsatisfiedLinkError: org.gdal.ogr.ogrJNI.GetDriverCount()I at org.gdal.ogr.ogrJNI.GetDriverCount(Native Method) at org.gdal.ogr.ogr.GetDriverCount(ogr.java:170)I've added all of the directories under gdal that contain dlls and jars to both the CLASSPATH and PATH environmental.
I thought it might be the libraries, but I am using the deployment location in the paths, which works in eclipse.
In the eclipse project's .classpath file I noticed that the gdal reference has an attribute called CLASSPATH_ATTR_LIBRARY_PATH_ENTRY, this links to the gdal\dll directory, but I have already included that in the paths:
This is the only difference I can see. How do you replicate this on a windows machine or is that handled by the CLASSPATH and PATH?
Do I need to reference the individual dlls? I have tried the 4 that normally go with gdal.jar, but that doesnt change the error that I am getting.
أكثر...
I am using gdal for some ogr processes and running the application from eclipse is fine, but running from command line on the same machine is running into problems.
and I get the following:
Caused by: java.lang.UnsatisfiedLinkError: org.gdal.ogr.ogrJNI.GetDriverCount()I at org.gdal.ogr.ogrJNI.GetDriverCount(Native Method) at org.gdal.ogr.ogr.GetDriverCount(ogr.java:170)I've added all of the directories under gdal that contain dlls and jars to both the CLASSPATH and PATH environmental.
I thought it might be the libraries, but I am using the deployment location in the paths, which works in eclipse.
In the eclipse project's .classpath file I noticed that the gdal reference has an attribute called CLASSPATH_ATTR_LIBRARY_PATH_ENTRY, this links to the gdal\dll directory, but I have already included that in the paths:
This is the only difference I can see. How do you replicate this on a windows machine or is that handled by the CLASSPATH and PATH?
Do I need to reference the individual dlls? I have tried the 4 that normally go with gdal.jar, but that doesnt change the error that I am getting.
أكثر...