JavaHL not loading (NoClassDefError)

后端 未结 5 1559
长发绾君心
长发绾君心 2021-02-09 14:24

I\'ve reinstalled Windows and unzipped a fresh copy of Eclipse. Despite this, I\'ve been unable access an ssh repository via Subclipse. The issue seems to be with JavaHL and the

5条回答
  •  有刺的猬
    2021-02-09 15:00

    I had the same problem with my Eclipse Helios installation in Ubuntu. To solve the problem I had to do the following.

    1. Install the svn library

      $ sudo apt-get install libsvn-java

    2. Find the location of the native libraries. In my case it was /usr/lib/jni. (If you've just installed the library you may have to update the locate db before running locate with /etc/cron.daily/mlocate - on Ubuntu 10.10, other OS may have different script names)

      $ locate libsvnjava

      In my case finds the following files: /usr/lib/jni/libsvnjavahl-1.so, /usr/lib/jni/libsvnjavahl-1.so.0, /usr/lib/jni/libsvnjavahl-1.so.0.0.0

    3. Find the location of eclipse installation directory. For the custom installation I choose /usr/local/eclipse

    4. Edit eclipse.ini contained in that directory. It's a file containing all eclipse options as explained in Eclipse Documentation. Add a line to that file with the following content (adjusting according to your native library path)

      -Djava.library.path=/usr/lib/jni

    5. Restart Eclipse. Everything should work now (In some cases you may need to restart Linux) .

提交回复
热议问题