OSGeo / PROJ-JNI

Java Native Interface for PROJ
https://osgeo.github.io/PROJ-JNI/
MIT License
23 stars 15 forks source link

Error while loading proj-binding.dll in Eclipse RCP development environment #31

Closed FilipGh closed 4 years ago

FilipGh commented 4 years ago

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.FileSystemNotFoundException

The proposed patch solves the problem. It runs fine in the following contexts :

Our environment:

FilipGh commented 4 years ago

NativeResource.java.diff.zip

desruisseaux commented 4 years ago

Published a new release candidate: https://github.com/Kortforsyningen/PROJ-JNI/releases/tag/1.0-RC5 Thanks for the fix!

Note: given all the nice patches you sent, would you like commit right to this repository?