-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Document how to properly set the java.library.path #15
Comments
I've learnt about the /run/host... path seen by the Flatpak application in #5. So, I tried to set
The error says in English: "cannot open the shared object file: non existing file or directory". I'm not an expert here: perhaps |
Sigh, it looks like WANdisco may be hard-coding the "rpath" in their binaries. This breaks dynamic loading in the Flatpak sandbox context. IMHO the dynamic linker is almost always smarter, so it's best not to try to outsmart it. On Fedora and RHEL there is a tool called
Otherwise you could always try switching to the pure-Java SVNkit implementation of Subversion in the Subclipse preferences. It's a bit slower, but it should work fine. In the long term, we could investigate bundling correctly built SVN binaries in the Flatpak sandbox. |
I'll try to have a look to chrpath, thank you. I'll report if I make progress. Meanwhile I think SVNkit is the way to go, although I always had mixed results with it. |
For the records, I tried |
Wait, on Ubuntu the libs are split between You are adding only |
Sure, because the dynamic linker will look in
Right, that's why I suspected rpath use -- the filesystem root of the sandbox is not the same as the filesystem root of the host.
I'm afraid I ran out of suggestions for now (except use the SVNkit implementation) |
On my Eclipse 2020-06 installed with flatpak I added Subclipse: https://github.com/subclipse/subclipse
This SVN plugin can use native JavaHL libraries installed on the local machine to provide SVN functionality.
In order to properly do this with my Linux Mint 18.3 (based on Ubuntu 16.04) I need to install WANdisco's libraries, because otherwise the JavaHL version provided by Ubuntu is too old, see: https://github.com/subclipse/subclipse/wiki/JavaHL-on-Linux
WANdisco's libraries are installed at /usr/lib/jni, which is not among the default paths checked by Subclipse. So, as documented in Subclipse's wiki, I have to add the following VM arg to eclipse.ini:
-Djava.library.path=/usr/lib/jni
.Right now I'm changing
/var/lib/flatpak/app/org.eclipse.Java/current/active/files/eclipse/eclipse.ini
directly, although I'm not sure it's the best way to do this (see #14). Nevertheless, the change is correctly taken by Eclipse, but yet Subclipse says it can't find JavaHL libraries in/usr/lib/jni
. Thinking about this a bit, I suspect it's due to the flatpak application being sandboxed.So, how to fix this, if at all possible? Thanks.
The text was updated successfully, but these errors were encountered: