We bumped into a problem while loading proj-binding.dll in our "Eclipse RCP development" environment (although, the run time executable runs correctly).
In methode NativeResource::libraryPath(), the resource file is given by :
final URL res = NativeResource.class.getResource(nativeFile);
The problem is:
It is NOT of the form : jar:file:/xxxx/yyyy/proj-binding.dll.
It is something like : bundleresource://92.fwk293907205:3/org/kortforsyningen/proj/proj-binding.dll
Thus, the call to Paths.get(res.toURI()) throws an exception:
java.nio.file.FileSystemNotFoundException
The proposed patch solves the problem. It runs fine in the following contexts :
"Normal" context when I compile the simple test : TransformPoints.java
We bumped into a problem while loading proj-binding.dll in our "Eclipse RCP development" environment (although, the run time executable runs correctly).
In methode NativeResource::libraryPath(), the resource file is given by :
final URL res = NativeResource.class.getResource(nativeFile);
The problem is:Thus, the call to
Paths.get(res.toURI())
throws an exception: java.nio.file.FileSystemNotFoundExceptionThe proposed patch solves the problem. It runs fine in the following contexts :
Our environment: