ubuntu安装svn插件(subclipse)缺少javaHL问题解决
来源:互联网 发布:人工智能与伦理道德 编辑:程序博客网 时间:2024/06/06 04:28
Linux
This is the most complicated because there are so many distributions.
CollabNet provides a client RPM for Red Hat that includes JavaHL (http://www.collab.net/downloads/subversion/redhat.html). In my experience, this RPM works on other Linux distributions. On RPM-based distributions like CentOS or Suse, it should just be a matter of installing the RPM. On Debian-based systems, I was able to use the alien package to install the RPM.
Of course many Linux distributions, such as Ubuntu, do a good job of providing up to date Subversion packages, and most of these now provide JavaHL as well. Typically, the JavaHL library is in a separate package that is dependent on the main Subversion package. In Debian/Ubuntu the package name is libsvn-java so you can just run this command to install the library:
$ apt-get install libsvn-java # Use sudo in Ubuntu
Next, find the path where the JavaHL library is installed, as you will need to know this path for the following instructions:
$ find / -name libsvnjavahl-1.so # Use sudo in Ubuntu
$ find /usr -name libsvnjavahl*
Although the library is installed, you still have to tell where to find it. The JVM on Linux does not look in a lot of the standard locations to find the libraries. (This could obviously change in the future.) For example, 32-bit Debian/Ubuntu uses a standard location of /usr/lib/jni for libraries to be used from Java. However, the Oracle JVM does not currently look in this location. The easiest way to tell Java where to find the JavaHL library is to specify the following when starting the JVM:
-Djava.library.path=
Example:
-Djava.library.path=/usr/lib/x86_64-linux-gnu/jni
CollabNet Subversion installs into /opt/CollabNet_Subversion. So if you are using that package, you need this:
-Djava.library.path=/opt/CollabNet_Subversion/lib
Eclipse provides its own mechanism for providing this setting. Eclipse comes with a file named eclipse.ini. This file is looked at when the Eclipse launcher starts the JVM and appends settings to the JVM when launching it. Specifically, you should see a line that says "-vmargs". Add a newline after this line and insert the above line to pass the setting the JVM needs. Each argument needs to be on its own line, so be sure to add a new line and then put the entire string above on its own line. Here is an example of this file from Eclipse 3.4:
-showsplash
org.eclipse.platform
-framework
plugins/org.eclipse.osgi_3.4.0.v20080605-1900.jar
-vmargs
-Djava.library.path=/usr/lib/x86_64-linux-gnu/jni
-Dosgi.requiredJavaVersion=1.5
-Xms40m
-Xmx512m
-XX:MaxPermSize=256m
- ubuntu安装svn插件(subclipse)缺少javaHL问题解决
- "Failed to load JavaHL Library" eclipse中安装svn插件 subclipse 出错 linux mint/ubuntu下
- 关于eclipse安装subclipse(svn)插件后出现Failed to load JavaHL Library的解决方法
- Ubuntu下Eclipse安装SVN插件(Subversion & Subclipse)
- Ubuntu下Eclipse安装SVN插件(Subversion & Subclipse)
- Ubuntu下Eclipse安装SVN插件(Subversion & Subclipse)
- Ubuntu下Eclipse安装SVN插件(Subversion & Subclipse)
- Ubuntu下Eclipse安装SVN插件(Subversion & Subclipse)
- ubuntu安装svn插件(subclipse)缺…
- Ubuntu下 Eclipse SVN插件 subclipse安装
- eclipse安装subclipse插件的javaHL问题
- 安装subclipse, SVN 插件
- 安装subclipse, SVN 插件
- Ubuntu16.04 Eclispe 安装 SVN 插件 subclipse 时 JavaHL 报错的解决办法
- Mac OS X 下 Eclipse 安装 SVN 插件 subclipse 及JavaHL 方法
- ubuntu 10.10下安装 Eclipse 的SubClipse插件出现Failed to load JavaHL Library错误解决方案
- eclipse 安装svn插件(Subclipse)
- 如何在Ubuntu 9.10安装subclipse SVN插件
- ros操作系统的介绍
- solr中同义词配置 (Synonyms)
- Xpath+第一节
- Reids框架NO_SQL非关系数据库的一些简单应用
- 字符串 数组 元组 字典
- ubuntu安装svn插件(subclipse)缺少javaHL问题解决
- Java基础---数组
- json
- 华为机试之字符个数统计
- 函数
- 流程控制
- Tarjan求强联通分量以及Tarjan O(m+n)求LCA
- Reverse Nodes in k-Group--LeetCode
- 17.9.23B组总结