1、安装 Eclipse
我之前安装的是:Eclipse IDE for Java Developers Version: Indigo Service Release 2
2、安装 subclipse
在eclipse中help--》install new software --》add
我选择的subclipse最新的版本http://subclipse.tigris.org/update_1.8.x
这时候如果用 svn checkout 或者 svn up
会报错误:
Failed to load JavaHL Library.
These are the errors that were encountered:
no libsvnjavahl-1 in java.library.path
no svnjavahl-1 in java.library.path
no svnjavahl in java.library.path
java.library.path = .:/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java
3、JAVAHL没有安装问题:
之后发现javahl仍然冲突,我们需要自己更新下javahk
去http://www.macports.org/install.php下载工具MacPorts
在安装完MacPorts以后,在终端下执行下面的命令sudo port install subversion-javahlbindings,安装javahl
此时重启eclipse,svn终于可以用了,enjoy it!
参考资料:
http://everlook.iteye.com/blog/1233821